configStore = (ConfigurationStore) kernel.getGBean(configStoreName);
configStore.install(bootstrap);
defaultEnvironment.addDependency(baseId, ImportType.ALL);
defaultEnvironment.setConfigId(webModuleArtifact);
GeronimoSecurityBuilderImpl securityBuilder = new GeronimoSecurityBuilderImpl(credentialStoreName, null, null);
builder = new TomcatModuleBuilder(defaultEnvironment,
new AbstractNameQuery(containerName),
Collections.singleton(webServiceBuilder),
Arrays.asList(new GBeanBuilder(null, null), securityBuilder),
new NamingBuilderCollection(null),
Collections.EMPTY_LIST,
null,
new MockResourceEnvironmentSetter(),
null);
builder.doStart();
securityBuilder.doStart();
}