code: public static boolean setField(Object object, String fieldName, Object value) {
  		char c = fieldName.charAt(0);
  
  		if (c >= 'a' && c <= 'z') {
  			c -= 'a' - 'A';
  			fieldName = c + fieldName.substring(1);
  		}
  
  		String methodName = "set" + fieldName;
  		Class<?>[] returnType = new Class<?>[1];
  		Class<?> objectClass = object.getClass();
  
  		Method getMethod = getMethod(objectClass, "get" + fieldName);
  
  		if (getMethod == null) {
  			getMethod = getMethod(objectClass, "is" + fieldName);
  		}
  
  		if (getMethod == null) {
  			return false;
  		}
  
  		returnType[0] = getMethod.getReturnType();
  
  		return silentInvoke(object, methodName, returnType, value);
  	}
docs: /*
  Set a field using reflection