String title = "Test container #"+UUIDGenerator.generateUuid();
container.setTitle(title);
container.setPreLoop("pre"); container.setPostLoop("post");
List<ContainerStructure> containerStructureList = new ArrayList<ContainerStructure>();
ContainerStructure cs=new ContainerStructure();
cs.setStructureId(StructureCache.getStructureByVelocityVarName("webPageContent").getInode());
cs.setCode("$body");
containerStructureList.add(cs);
container = APILocator.getContainerAPI().save(container, containerStructureList, host, user, false);
String cInode=container.getInode();
// 2nd
container = new Container();
String title2 = "Test 2nd container #"+UUIDGenerator.generateUuid();
container.setTitle(title2);
container.setPreLoop("pre"); container.setPostLoop("post");
containerStructureList = new ArrayList<ContainerStructure>();
cs=new ContainerStructure();
cs.setStructureId(StructureCache.getStructureByVelocityVarName("webPageContent").getInode());
cs.setCode("$body"); containerStructureList.add(cs);
container = APILocator.getContainerAPI().save(container, containerStructureList, host, user, false);
String cInode2=container.getInode();
container = null;
HibernateUtil.closeSession();