private static BatchUtils init() throws BatchException {
		logger.setMethodName("init");
		String os = System.getProperty("os.name").toLowerCase();
		BatchUtils.logger.write("Operating System is: " + os,
				ILogger.SEVERITY_INFO);

		Properties prop = new Properties();
		String fileName = BATCHS_PATH.concat(File.separator).concat(BATCHS_INI);
		try {
			BatchUtils.logger.write(
					"Loading config file: ['".concat(BATCHS_PATH)
							.concat(File.separator).concat(BATCHS_INI)
							.concat("']"), ILogger.SEVERITY_INFO);
			String streamPath = "/".concat(fileName.replaceAll("\\\\", "/"));
			Reader r = new InputStreamReader(
					BatchUtils.class.getResourceAsStream(streamPath));
			prop.load(r);
		} catch (IOException e) {
			try {
				System.out.println((new File(BATCHS_PATH).getAbsolutePath())
						.concat(fileName));
				prop.load(new FileReader(new File(new File("./")
						.getCanonicalPath().concat(File.separator)
						.concat(fileName))));
			} catch (FileNotFoundException e1) {
				e1.printStackTrace();
			} catch (IOException e1) {
				e1.printStackTrace();
			}
		}

		InputStream propFile = null;
		String propFileName = null;
		for (Object file : prop.keySet()) {
			propFileName = ((String) prop.get(file));
			if (os.contains(propFileName.substring(0,
					propFileName.lastIndexOf(".")))) {
				String path = "/".concat(BATCHS_PATH).concat(File.separator)
						.concat(propFileName).replaceAll("\\\\", "/");
				propFile = BatchUtils.class.getResourceAsStream(path);
				break;
			}
		}
		if (propFileName == null || propFile == null) {
			BatchUtils.logger
					.error("Could not load Operating System properties file");
			System.exit(0);
		}
		BatchUtils.logger.write("Properties file to use: ['" + propFileName
				+ "']", ILogger.SEVERITY_INFO);
		Properties properties = new Properties();
		try {
			properties.load(new InputStreamReader(propFile));
		} catch (FileNotFoundException e) {
			BatchUtils.logger.error("The properties file can not be found");
			return null;
		} catch (IOException e) {
			BatchUtils.logger.error("Can not load the properties file");
			return null;
		}
		BatchUtils.logger.write("Properties file ['" + propFileName
				+ "'] loaded", ILogger.SEVERITY_INFO);
		return new BatchUtils(properties);
	}