ExportManifestEntityDto getExportManifestEntityDto() {
// Property list is not kept in sync. Create it now
List<ExportManifestProperty> rawProperties = rawExportManifestEntity.getExportManifestProperty();
rawProperties.clear();
if ( entityMetaData != null ) {
ExportManifestProperty exportManifestProperty = new ExportManifestProperty();
exportManifestProperty.setEntityMetaData( entityMetaData );
rawProperties.add( exportManifestProperty );
}
if ( entityAcl != null ) {
ExportManifestProperty exportManifestProperty = new ExportManifestProperty();
exportManifestProperty.setEntityAcl( entityAcl );
rawProperties.add( exportManifestProperty );
}
if ( customProperties != null && customProperties.size() > 0 ) {
ExportManifestProperty exportManifestProperty = new ExportManifestProperty();
exportManifestProperty.getCustomProperty().addAll( customProperties );
rawProperties.add( exportManifestProperty );
}
return rawExportManifestEntity;
}