public static boolean loadSystem(String nativeDirPath) {
		final String osName = System.getProperty("os.name").toLowerCase();
		final String osArch = System.getProperty("sun.arch.data.model");
		final File nativeDir = new File(nativeDirPath);

		boolean isLoaded = false;

		if (nativeDir != null && nativeDir.isDirectory()) {
			final File[] nativeFiles = nativeDir.listFiles();

			for (int i = 0; !isLoaded && i < nativeFiles.length; i++) {
				if (osName.indexOf(nativeFiles[i].getName()) > -1) {
					if (osName.indexOf("mac") > 0) {
						isLoaded = loadDir(nativeFiles[i]);
					} else {
						isLoaded = loadDir(nativeFiles[i] + "/" + osArch);
					}
				}
			}
		}

		return isLoaded;
	}