Object (Field field) { final boolean accessible = field.isAccessible(); try { field.setAccessible(true); return field.get(this); } catch (IllegalAccessException e) { LOG.error(e); } finally { field.setAccessible(accessible); } return null; }