private boolean obtainRules(int Mode) {
		int index = 0;
		String[] paramType;
		if (Mode == 1) { // File mode
			for (String param : systemParameters) {
				paramType = param.split(DELIMITER);
				if (fileParams.contains(paramType[0].toString())) {
					System.out.println("obtainRules param found: " + param
							+ " index: " + index);
					CONNECTION.add(param);
					index++;
				}
			}
			if (index == fileParams.size()) {
				System.out.println("obtainRules Valid parameters finalized");
				return true;
			}
		} else if (Mode == 2) { // DB mode
			for (String param : systemParameters) {
				paramType = param.split(DELIMITER);
				if (dbParams.contains(paramType[0].toString())) {
					System.out.println("obtainRules param found: " + param
							+ " index: " + index);
					CONNECTION.add(param);
					index++;
				}

			}
			if (index == 6) {
				System.out.println("obtainRules Valid parameters finalized");
				return true;
			}
		} else if (Mode == 3) {
			return true;
		} else {
			System.out.println("Invalid mode");
			return false;
		}

		return false;
	}