code: public static Class<?> getPrimitiveWrapper(Class<?> primitiveType) {
          // does anyone know a better strategy than comparing names?
          if (boolean.class.equals(primitiveType)) {
              return Boolean.class;
          } else if (float.class.equals(primitiveType)) {
              return Float.class;
          } else if (long.class.equals(primitiveType)) {
              return Long.class;
          } else if (int.class.equals(primitiveType)) {
              return Integer.class;
          } else if (short.class.equals(primitiveType)) {
              return Short.class;
          } else if (byte.class.equals(primitiveType)) {
              return Byte.class;
          } else if (double.class.equals(primitiveType)) {
              return Double.class;
          } else if (char.class.equals(primitiveType)) {
              return Character.class;
          } else {
  
              return null;
          }
      }
docs: Gets the wrapper object class for the given primitive type class.
  For example, passing <code>boolean.class</code> returns <code>Boolean.class</code>
  @param primitiveType the primitive type class for which a match is to be found
  @return the wrapper type associated with the given primitive
  or null if no match is found