if (containerConfig.getUsername() != null) {
Authentication.username = containerConfig.getUsername();
Authentication.password = containerConfig.getPassword();
}
DomainClient domainClient = DomainClient.Factory.create(containerConfig.getManagementAddress(),
containerConfig.getManagementPort(), Authentication.getCallbackHandler());
managementClient = new ManagementClient(domainClient, containerConfig.getManagementAddress().getHostAddress(),
containerConfig.getManagementPort());
managementClientInst.set(managementClient);
ArchiveDeployer archiveDeployer = new ArchiveDeployer(domainClient.getDeploymentManager());
archiveDeployerInst.set(archiveDeployer);
try {
startInternal();
} catch (LifecycleException e) {