String moduleId = module.getId();
J2EEFlexProjDeployable j2eeModule = (J2EEFlexProjDeployable) module.loadAdapter(J2EEFlexProjDeployable.class, null);
if (j2eeModule != null) {
// j2eeFlex
ArtifactEdit edit = null;
try {
edit = ArtifactEdit.getArtifactEditForRead(j2eeModule.getProject());
//TODO JAXB Refactoring - Can below two lines be removed without harm?
//XMIResource res = (XMIResource) edit.getContentModelRoot().eResource();
//moduleId = res.getID(edit.getContentModelRoot());
} finally {
if (edit != null)
edit.dispose();
}
}
if (moduleId != null && moduleId.length() > 0)
return moduleId;