if (request.isExternallyManagedApp()) {
ElementProperty extManagedProperty = new ElementProperty();
extManagedProperty.setName(EXTERNALLY_MANAGED);
extManagedProperty.setValue("true");
if (appBean instanceof J2eeApplication) {
J2eeApplication app = (J2eeApplication) appBean;
app.addElementProperty(extManagedProperty);
} else if (appBean instanceof EjbModule) {
EjbModule app = (EjbModule) appBean;
app.addElementProperty(extManagedProperty);
} else if (appBean instanceof WebModule) {
WebModule app = (WebModule) appBean;
app.addElementProperty(extManagedProperty);
} else if (appBean instanceof AppclientModule) {
AppclientModule app = (AppclientModule) appBean;
app.addElementProperty(extManagedProperty);
} else if (appBean instanceof ConnectorModule) {
ConnectorModule app = (ConnectorModule) appBean;
app.addElementProperty(extManagedProperty);
}
}
// Set the context root on the extension module as a property
if(appBean instanceof ExtensionModule) {