@Override
protected void onContainerAllocated(Container container) {
if (getMonitor() instanceof ContainerAware) {
((ContainerAware)getMonitor()).onContainer(Arrays.asList(container));
}
DefaultGridMember member = new DefaultGridMember(container);
if (grid.addMember(member)) {
ContainerCluster cluster = findContainerClusterByContainer(container);
if (cluster != null) {
getLauncher().launchContainer(container, onContainerLaunchCommands(container, cluster, getCommands(clusterIdToRef.get(cluster.getId()))));
} else {