code: public void saveGroup(Group group, boolean broadcast) throws Exception
     {
        Session session = service.getStorageSession();
        try
        {
           Node groupNode = utils.getGroupNode(session, group);
  
           if (broadcast)
           {
              preSave(group, false);
           }
  
           writeGroup(group, groupNode);
           session.save();
  
           putInCache(group);
  
           if (broadcast)
           {
              postSave(group, false);
           }
        }
        finally
        {
           session.logout();
        }
     }
docs: {@inheritDoc}