private boolean removeModeFromSet(final String modeName, Map<String, Set<String>> modeSets, String modeToRemove) {
		if (null == modeName || "".equals(modeName.trim())) return false;
		boolean isModified = false;
		String o = modeName.trim().toUpperCase();
		Set<String> modeSet = modeSets.get(o);
		if (null == modeSet) return isModified;
		String n = modeToRemove.trim().toUpperCase();
		if (!"".equals(n) && modeSet.remove(n)) {
			isModified = true;
			if (modeSet.size() == 0) modeSets.remove(o);
		}
		return isModified;
	}