class ReflectionEngine {

	public Object getFieldValue(Object obj, Field field) {
		Object fieldValue = null;

		try {
			fieldValue = field.get(obj);
		} catch (Exception e) {
			logger.log(Level.SEVERE, "Error while fetching field value of " + field, e);
			throw new Py4JException(e);
		}
		return fieldValue;
	}

}