private synchronized static Option createOption(String shortOption,
			String longOption, String description, boolean arg, boolean required) {

		OptionBuilder.withLongOpt(longOption);
		OptionBuilder.withDescription(description);
		OptionBuilder.isRequired(required);
		if (arg)
			OptionBuilder.hasArg();

		Option option = OptionBuilder.create(shortOption);

		return option;
	}