code: private static String determineLinuxLibrary(
        final String library,
        final String osName,
        final String osArch
    ) {
      String resourceName;
      String platform = null;
      String fileExtension = "so";
  
      switch (osArch) {
        case ARCH_AMD64:
        case ARCH_X86_64:
          platform = "linux-x64";
          break;
  
        case ARCH_ARM:
          platform = "linux-armhf32";
          break;
  
        case ARCH_AARCH64:
          platform = "linux-aarch64";
          break;
  
        default:
          unsupportedPlatform(osName, osArch);
      }
  
      resourceName = "/" + platform + "/" + library + "." + fileExtension;
      return resourceName;
    }
docs: Determine the right linux library depending on the architecture.
  
  @param library The library name.
  @param osName  The operating system name.
  @param osArch  The system architecture.
  @return The library resource.
  @throws UnsupportedOperationException Throw an exception if no native library for this platform
  was found.