FabricPlugin.getLogger().debug(
"About to create child container of " + this
+ " with name: " + name + " and profiles: "
+ Arrays.asList(profiles));
Fabric8Facade fabricService = getFabricService();
CreateContainerOptionsDTO options = CreateContainerOptionsDTO
.builder()
.name(name)
.parent(getId())
.version(version.getVersionId())
.profiles(Collections.unmodifiableSet(new HashSet<String>(profilesList)))
.zookeeperUrl(fabricService.getZookeeperUrl())
.zookeeperPassword(getFabric().getDetails().getZkPassword())
.jmxUser(getFabric().getDetails().getUserName())
.jmxPassword(getFabric().getDetails().getPassword())
.proxyUri(fabricService.getMavenRepoURI()).build();
CreateContainerMetadataDTO[] newContainers = fabricService.createContainers(options);
// for(CreateContainerMetadata metadata : newContainers) {
// Container newContainer = metadata.getContainer();
// getFabric().setContainerProfiles(newContainer, profiles);
// }