private Class getExpectedType(Field field, Method writeMethod) {
		if (field != null) {
			return field.getType();
		} else if (writeMethod != null) {
			return writeMethod.getReturnType();
		} else {
			return null;
		}
	}