}
//return new java.util.ArrayList();
}
public static void saveMultiTree(MultiTree o) {
if(!InodeUtils.isSet(o.getChild()) | !InodeUtils.isSet(o.getParent1()) || !InodeUtils.isSet(o.getParent2())) throw new DotRuntimeException("Make sure your Multitree is set!");
try {
HibernateUtil.saveOrUpdate(o);
VersionInfo htmlVI = APILocator.getVersionableAPI().getVersionInfo(o.getParent1());
htmlVI.setVersionTs(new Date());
APILocator.getVersionableAPI().saveVersionInfo(htmlVI);
} catch (DotHibernateException e) {
Logger.error(MultiTreeFactory.class, "saveMultiTree failed:" + e, e);
throw new DotRuntimeException(e.getMessage());
} catch (DotStateException e) {
Logger.error(MultiTreeFactory.class, "saveMultiTree failed:" + e, e);
throw new DotRuntimeException(e.getMessage());
} catch (DotDataException e) {
Logger.error(MultiTreeFactory.class, "saveMultiTree failed:" + e, e);
throw new DotRuntimeException(e.getMessage());
}
}