try{
try {
local = HibernateUtil.startLocalTransactionIfNeeded();
} catch (DotDataException e1) {
Logger.error(TemplateFactoryImpl.class,e1.getMessage(),e1);
throw new DotHibernateException("Unable to start a local transaction " + e1.getMessage(), e1);
}
//Get one of the relations to get the container id.
String containerIdentifier = containerStructureList.get(0).getContainerId();