/** * Initializes the regular expression validator. * * @param context the ValidationContext */ private void initEvaluator(final ValidationContext context) { _regex = context.getInternalContext().getRegExpEvaluator(); if (_regex == null && hasPattern()) { throw new IllegalStateException( resourceBundle.getString("patternValidator.error.exception.noPatterns")); } }