code: private Field findField(Class clazz, String name) {
  		Field[] fields = clazz.getDeclaredFields();
  		for (int i=0;i<fields.length;i++) {
  			if (fields[i].getName().equalsIgnoreCase(name)) {
  				if (fields[i].getType().isPrimitive()) {
  					return fields[i];
  				}
  				if (fields[i].getType() == String.class) {
  					return fields[i];
  				}
  			}
  		}
  		
  		return null;
  	}
docs: Find a field in a class by it's name. Note that this method is
  only needed because the general reflection method is case
  sensitive
  
  @param clazz The clazz to search
  @param name The name of the field to search for
  @return The field or null if none could be located