Validator validator = configurers.isEmpty() ? new Validator() : new Validator(configurers);
//if the method is annotated with a @Profiles annotation, use those profiles
Method method = clazz.getMethod(methodName, new Class[0]);
if (method != null) {
Profiles profiles = method.getAnnotation(Profiles.class);
if (profiles != null) {
String[] profileNames = profiles.value();
if (profileNames != null && profileNames.length > 0) {
validator.disableAllProfiles();
if (LOG.isDebugEnabled())
LOG.debug("Enabling profiles [#0]", StringUtils.join(profileNames, ","));
for (String profileName : profileNames)