@Override public GroupDescriptor createGroup( String user, String groupName, String parentGroup, boolean isDirectory) throws ZeusException { if (parentGroup == null) { throw new ZeusException("parent group may not be null"); } GroupDescriptor group = new GroupDescriptor(); group.setOwner(user); group.setName(groupName); group.setParent(parentGroup); group.setDirectory(isDirectory); GroupValidate.valide(group); GroupPersistence persist = PersistenceAndBeanConvert.convert(group); persist.setGmtCreate(new Date()); persist.setGmtModified(new Date()); getHibernateTemplate().save(persist); return PersistenceAndBeanConvert.convert(persist); }