ContentDao contentDao = ContentDao.createInstance();
contentDao.writeToNode(group, groupNode);
session.save();
} catch (LockException e) {
throw new ObjectLockedException(group);
} catch (ItemExistsException e) {
throw new ObjectExistsException(group);
} catch (RepositoryException e) {
throw new RuntimeException(e);
}