code: public static boolean matchesTypeName(Class<?> clazz, String typeName) {
  		return (typeName != null &&
  				(typeName.equals(clazz.getName()) || typeName.equals(clazz.getSimpleName()) ||
  				(clazz.isArray() && typeName.equals(getQualifiedNameForArray(clazz)))));
  	}
docs: Check whether the given class matches the user-specified type name.
  @param clazz the class to check
  @param typeName the type name to match