private int getServerIdFromName(String groupName, int profileId) {
        List<ServerGroup> serverGroups = ServerRedirectService.getInstance().tableServerGroups(profileId);
        if (groupName.equals("Default")) {
            return 0;
        }
        for (ServerGroup group : serverGroups) {
            if (groupName.compareTo(group.getName()) == 0) {
                return group.getId();
            }
        }
        return -1;
    }
private int getServerIdFromName ( String groupName , int profileId ) { List < ServerGroup > serverGroups = ServerRedirectService . getInstance ( ) . tableServerGroups ( profileId ) ; if ( groupName . equals ( "Default" ) ) { return 0 ; } for ( ServerGroup group : serverGroups ) { if ( groupName . compareTo ( group . getName ( ) ) == 0 ) { return group . getId ( ) ; } } return - 1 ; }
@param groupName Name of server group to get ID for
@param profileId Profile ID server group is in
@return ID of group