code: private static String loadUA(ClassLoader loader, String filename){
          String ua = "cloudant-http";
          String version = "unknown";
          final InputStream propStream = loader.getResourceAsStream(filename);
          final Properties properties = new Properties();
          try {
              if (propStream != null) {
                  try {
                      properties.load(propStream);
                  } finally {
                      propStream.close();
                  }
              }
              ua = properties.getProperty("user.agent.name", ua);
              version = properties.getProperty("user.agent.version", version);
          } catch (IOException e) {
              // Swallow exception and use default values.
          }
  
          return String.format(Locale.ENGLISH, "%s/%s", ua,version);
      }
docs: Loads the properties file using the classloader provided. Creating a string from the properties
  "user.agent.name" and "user.agent.version".
  @param loader The class loader to use to load the resource.
  @param filename The name of the file to load.
  @return A string that represents the first part of the UA string eg java-cloudant/2.6.1