return emptyFailure;
}
char c = identifier.charAt(0);
if (!Character.isJavaIdentifierStart(c)) {
return new BeanValidationFailure(bean, attribute, validationMessage(
attribute,
" starts with invalid character: " + c));
}
for (int i = 1; i < identifier.length(); i++) {
c = identifier.charAt(i);
if (!Character.isJavaIdentifierPart(c)) {
return new BeanValidationFailure(bean, attribute, validationMessage(
attribute,
" contains invalid character: " + c));
}
}