if (getIdentifier() == null) isValid = false;
if (identifier != null) {
isReferenced = false;
Enumeration enm = getIMSManifestDocument().getOrganizationsElement().preorderEnumeration();
while (enm.hasMoreElements()) {
AbstractElement node = (AbstractElement) enm.nextElement();
if (node instanceof ItemElement) {
ItemElement item = (ItemElement) node;
if (item.getIdentifierref() != null
&& item.getIdentifierref().equals(identifier)) {
isReferenced = true;
break;
}
}
}
enm = getIMSManifestDocument().getResourcesElement().preorderEnumeration();
while (enm.hasMoreElements()) {
AbstractElement node = (AbstractElement) enm.nextElement();
if (node instanceof DependencyElement) {
DependencyElement dependency = (DependencyElement) node;
if (dependency.getIdentifierref() != null
&& dependency.getIdentifierref().equals(identifier)) {
isReferenced = true;