/** * Retrieves and returns the value of the specified {@link Field} * in the specified {@link Class}. Returns {@code null} in case of failure. * * @param field target field * @param clazz target class * @return field value */ protected Object retrieve(Field field, Class clazz) { try { return field.get(clazz); } catch(IllegalAccessException iae) { getLog().warn("IllegalAccessException while trying to access {}", field.getName(), iae); return null; } }
getLog().debug("Unable to retrieve value of field at {}", name, e);