code: public static String getValidType(String type)
      {
          return (validationClassMapper.get(type) == null) ? "binary" : validationClassMapper.get(type);
      }
docs: Gets the valid type.
  
  @param type
  the type
  @return the valid type