Iterator<Template> it = currentTemplates.iterator();
// update templates to new version
while (it.hasNext()) {
Template parentInode = (Template) it.next();
parentInode.addChild(container);
}
Identifier identifier = APILocator.getIdentifierAPI().find(container);
//Saving the host of the container
identifier.setHostId(host.getIdentifier());