/** * Finds the list of data objects that are associated with properties in this template. * * @return the list of referenced data objects. */ public List<DataObject> findReferencedDataObjects() { List<DataObject> result = new ArrayList<DataObject>(); for (PropertyGroup propertyGroup : getPropertyGroups()) { for (Property property : propertyGroup.getProperties()) { DataObject dataObject = property.getDataObject(); if (dataObject != null) { result.add(dataObject); } } } return result; }