[nobug and 86014]: Fixed label providers for J2EE navigator extension and added Sorting capabilities for the various extensions.
diff --git a/plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/edit/EditModelRegistry.java b/plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/edit/EditModelRegistry.java
index fb68e17..b368545 100644
--- a/plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/edit/EditModelRegistry.java
+++ b/plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/edit/EditModelRegistry.java
@@ -197,7 +197,8 @@
 				if (this.configurationElement != null) {
 					try {
 						this.factory = (IEditModelFactory) this.configurationElement.createExecutableExtension(FACTORY_CLASS_ATTR);
-						Boolean value = Boolean.valueOf(this.configurationElement.getAttribute(LOAD_UNKNOWN_RESOURCES_ATTR));
+						String loadUnknownResourceAsReadOnly = this.configurationElement.getAttribute(LOAD_UNKNOWN_RESOURCES_ATTR);
+						Boolean value = loadUnknownResourceAsReadOnly != null ? Boolean.valueOf(loadUnknownResourceAsReadOnly) : Boolean.FALSE;
 						this.factory.setLoadKnownResourcesAsReadOnly(value.booleanValue());
 						discardConfigurationElementIfNecessary();
 					} catch (CoreException e) {
diff --git a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/modulecore/ModuleCore.java b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/modulecore/ModuleCore.java
index a195319..8d5692c 100644
--- a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/modulecore/ModuleCore.java
+++ b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/modulecore/ModuleCore.java
@@ -636,8 +636,12 @@
 		synchronized (dependentCores) {
 			dependentCore = (ModuleCore) dependentCores.get(aModuleURI);
 			if (dependentCore == null) {
-				dependentCore = getModuleCoreForRead(getContainingProject(aModuleURI));
-				dependentCores.put(aModuleURI, dependentCore);
+				IProject container = getContainingProject(aModuleURI);
+				if(container != null) {
+					dependentCore = getModuleCoreForRead(container);
+					dependentCores.put(aModuleURI, dependentCore);
+				} else 
+					throw new UnresolveableURIException(aModuleURI);
 			}
 		}
 		return dependentCore;