code: public Field[] getFields(Class clazz, String fieldname) {
  	Struct fieldMap;
  	Object o;
  	synchronized (map) {
  	    o = map.get(clazz);
  	    if (o == null) {
  		fieldMap = store(clazz);
  	    }
  	    else fieldMap = (Struct) o;
  	}
  	o = fieldMap.get(fieldname, null);
  	if (o == null) return null;
  	return (Field[]) o;
  
      }
docs: returns all fields matching given criteria or null if field does exist
  
  @param clazz clazz to get field from
  @param fieldname Name of the Field to get
  @return matching Fields as Array