public static function buildRule($ruleSpec, $arguments = [])
{
try {
return static::getFactory()->rule($ruleSpec, $arguments);
} catch (\Exception $exception) {
throw new ComponentException($exception->getMessage(), $exception->getCode(), $exception);
}
}