code: @Nullable
    public static Properties loadPropertiesFromResource(URL resource) {
      try (InputStream stream = resource.openStream()) {
        return loadProperties(stream);
      } catch (IOException e) {
        LOG.warn("Failed to read properties from {}: {}", resource, e.toString());
        return null;
      }
    }
docs: Loads properties from a resource.
  
  @param resource url of the properties file
  @return a set of properties on success, or null if failed