try {
moduleCore = StructureEdit.getStructureEditForRead(project);
if( moduleCore != null ) {
WorkbenchComponent component = moduleCore.getComponent();
if (component != null) {
ResourceTreeRoot root = ResourceTreeRoot.getDeployResourceTreeRoot(component);
ComponentResource[] resources = root.findModuleResources(runtimePath, ResourceTreeNode.CREATE_NONE);
if (resources.length > 0) {
for (int resourceIndx = 0; resourceIndx < resources.length; resourceIndx++) {
if (aProjectRelativeLocation.makeAbsolute().equals(resources[resourceIndx].getSourcePath())) {
return true;
}