Class returnType = method.getReturnType();
if ((returnType != null) && fieldType.isAssignableFrom(returnType)) {
if (fieldMap.getHandler() == null) {
//-- Use EnumFieldHandler
FieldHandler handler = xmlDesc.getHandler();
handler = new EnumFieldHandler(fieldType, handler);
xmlDesc.setHandler(handler);
xmlDesc.setImmutable(true);
}
}
}