code: private static TYPE toTYPE(String type) {
          if (null == type || type.trim().isEmpty()) {
              return TYPE.OBJECT;
          } else {
              return TYPE.valueOf(type.toUpperCase());
          }
      }
docs: Convert type attribute value to TYPE enum (no attribute = OBJECT)
  
  @param type The type as a string
  @return