code: private static Object setTextValue(Object entity, Field member, Object retVal)
      {
          if (member != null && member.getType().isEnum())
          {
              EnumAccessor accessor = new EnumAccessor();
              if (member != null)
              {
                  retVal = accessor.fromString(member.getType(), (String) retVal);
              }
          }
          else if (member != null
                  && (member.getType().isAssignableFrom(char.class) || member.getType().isAssignableFrom(Character.class)))
          {
              retVal = new CharAccessor().fromString(member.getType(), (String) retVal);
          }
          return retVal;
      }
docs: Sets the text value.
  
  @param entity
  the entity
  @param member
  the member
  @param retVal
  the ret val
  @return the object