for (String hostName : afterVirtualApplicationManagerCreation.getHostNames()) {
hostNames.add(hostName);
getVirtualApplicationContext().create(hostName);
virtualApplication.get().setHostName(hostName);
beanManager.fireEvent(new AfterVirtualApplicationCreation());
getVirtualApplicationContext().detach();
}
}