engine.setName(engineMetaData.getName());
// FIXME: This should be done by XB
if (engineMetaData.getJvmRoute() != null) {
engine.setJvmRoute(StringPropertyReplacer.replaceProperties(engineMetaData.getJvmRoute()));
}
engine.getPipeline().addValve(new ActiveRequestResponseCacheValve());
engine.setDefaultHost(engineMetaData.getDefaultHost());
service.setContainer(engine);
// Server/Service/Engine/Realm
if (engineMetaData.getRealm() != null) {