boolean () { Object instance = getInstance(); try { return instance.getClass().getField(myFieldName).getBoolean(instance); } catch (Exception exception) { LOG.error(String.format("Boolean field '%s' not found in %s", myFieldName, instance), exception); } return false; }