installModule(module, earContext);
EARContext moduleContext;
if (module.isStandAlone()) {
moduleContext = earContext;
} else {
moduleContext = new FragmentContext(earContext, ConfigurationModuleType.EJB);
// Environment environment = earContext.getConfiguration().getEnvironment();
// File configurationDir = new File(earContext.getBaseDir(), module.getTargetPath());
//// configurationDir.mkdirs();
//
// // construct the ejb app deployment context... this is the same class used by the ear context