public void validate(Model obj) throws ValidateException, DBException {
super.validate(obj);
String value = (String) getPersistenceValue(obj);
if (maxLength != null && value != null && value.length() > maxLength) {
throw new ValidateException(String.format("'%s' field validation error: max length < actual size (%s)", fieldName, value.length()));
}
}