code: private static String determineMacLibrary(final String library) {
      String resourceName;
      String platform = "darwin";
      String fileExtension = "dylib";
      resourceName = "/" + platform + "/" + library + "." + fileExtension;
      return resourceName;
    }
docs: Determine the right mac library depending on the architecture.
  
  @param library The library name.
  @return The library resource.