private int getGroupPosition(String name, String fnmPrefix) {
        ArrayList groupNames = (ArrayList) gNamesMap.get(name);
        if (groupNames == null) {
            EIError.debugMsg("No group names for " + name, EIError.ErrorLevel.Error);
            return -1;
        }

        String nm;
        for (int i = 0; i < groupNames.size(); i++) {
            nm = (String) groupNames.get(i);
            if (nm.equals(fnmPrefix)) {
                return i;
            }
        }

        EIError.debugMsg("No " + fnmPrefix + " group name found for " + name, EIError.ErrorLevel.Error);
        return -1;
    }