code: private Object onEnum(Attribute attribute, Object fieldValue)
      {
          if (((Field) attribute.getJavaMember()).getType().isEnum())
          {
              EnumAccessor accessor = new EnumAccessor();
              fieldValue = accessor.fromString(((AbstractAttribute) attribute).getBindableJavaType(),
                      fieldValue.toString());
          }
          return fieldValue;
      }
docs: On enum.
  
  @param attribute
  the attribute
  @param fieldValue
  the field value
  @return the object