if (Boolean.TRUE.equals(resetServices.getCallGroup()) || Boolean.TRUE.equals(resetServices.getUser())) {
if (Boolean.TRUE.equals(resetServices.getCallGroup())) {
    public void resetServices(ResetServices resetServices) throws RemoteException {        // Clear the call group context not only when requested, but also when the        // core context is going to be cleared.  Otherwise we get database integrity        // problems, because the user ring objects in a call group reference users.        String preserveAdminPintoken = null;        String adminUsername = "superadmin";        if (Boolean.TRUE.equals(resetServices.getCallGroup())            || Boolean.TRUE.equals(resetServices.getUser())) {            m_callGroupContext.clear();        }        if (Boolean.TRUE.equals(resetServices.getConferenceBridge())) {            m_conferenceBridgeContext.clear();        }        if (Boolean.TRUE.equals(resetServices.getParkOrbit())) {            m_parkOrbitContext.clear();        }        if (Boolean.TRUE.equals(resetServices.getPhone())) {            m_phoneContext.clear();        }        if (Boolean.TRUE.equals(resetServices.getUser())) {            org.sipfoundry.sipxconfig.common.User superadmin = m_coreContext.loadUserByUserName(adminUsername);            if (superadmin != null) {                preserveAdminPintoken = superadmin.getPintoken();            }                        m_coreContext.clear();                    }                if (Boolean.TRUE.equals(resetServices.getSuperAdmin())) {            m_coreContext.createAdminGroupAndInitialUser("");            if (preserveAdminPintoken != null) {                org.sipfoundry.sipxconfig.common.User superadmin = m_coreContext.loadUserByUserName(adminUsername);                superadmin.setPintoken(preserveAdminPintoken);                m_coreContext.saveUser(superadmin);            }        }            }