diff --git a/entity-management-definitions/src/main/java/eu/europeana/entitymanagement/definitions/model/Entity.java b/entity-management-definitions/src/main/java/eu/europeana/entitymanagement/definitions/model/Entity.java index 740b52e9..c9db854a 100644 --- a/entity-management-definitions/src/main/java/eu/europeana/entitymanagement/definitions/model/Entity.java +++ b/entity-management-definitions/src/main/java/eu/europeana/entitymanagement/definitions/model/Entity.java @@ -231,6 +231,9 @@ public void setIsShownBy(WebResource resource) { } public Object getFieldValue(Field field) throws IllegalAccessException { + if(!field.canAccess(this)) { + field.setAccessible(true); + } return field.get(this); }