code: public static JClass findFirstClassBySimpleName(JCodeModel[] codeModels, String simpleClassName) {
  		if (codeModels != null && codeModels.length > 0) {
  			for (JCodeModel codeModel : codeModels) {
  				Iterator<JPackage> packages = codeModel.packages();
  				while (packages.hasNext()) {
  					JPackage jPackage = packages.next();
  					Iterator<JDefinedClass> classes = jPackage.classes();
  					while (classes.hasNext()) {
  						JDefinedClass aClass = classes.next();
  						if (aClass.name().equals(simpleClassName)) {
  							return aClass;
  						}
  					}
  				}
  			}
  			// Is this a simple type?
  			JType parseType;
  			try {
  				parseType = codeModels[0].parseType(simpleClassName);
  				if (parseType != null) {
  					if (parseType.isPrimitive()) {
  						return parseType.boxify();
  					} else if (parseType instanceof JClass) {
  						return (JClass) parseType;
  					}
  				}
  			} catch (ClassNotFoundException e) {
  				; // Do nothing we will throw an exception further down
  			}
  
  			JClass boxedPrimitive = codeModels[0].ref("java.lang." + simpleClassName);
  			if (boxedPrimitive != null) {
  				return boxedPrimitive;
  			}
  
  			throw new InvalidCodeModelException("No unique class found for simple class name " + simpleClassName);
  		}
  
  		throw new InvalidCodeModelException("No code models provided for " + simpleClassName);
  
  	}
docs: Searches inside a JCodeModel for a class with a specified name ignoring
  package
  
  @param codeModels
  The codemodels which we will look inside
  @param simpleClassName
  The class name to search for
  @return the first class in any package that matches the simple class
  name.