public static List<String> getPossibleCompletionsForGivenArgs(String[] args, String[] possibilitiesOfCompletion) {
		String argumentToFindCompletionFor = args[args.length-1];

		List<String> listOfPossibleCompletions = new ArrayList<String>();

		for (int i = 0; i < possibilitiesOfCompletion.length; ++i) {
			String foundString = possibilitiesOfCompletion[i];

			if(foundString.regionMatches(true, 0, argumentToFindCompletionFor, 0, argumentToFindCompletionFor.length())) {
				listOfPossibleCompletions.add(foundString);
			}
		}
		return listOfPossibleCompletions;
	}