code: public static Dependencies load(final Class<?> clasz, final String resourcePathAndName) {
          Utils4J.checkNotNull("clasz", clasz);
          Utils4J.checkNotNull("resourcePathAndName", resourcePathAndName);
  
          try {
              final URL url = clasz.getResource(resourcePathAndName);
              if (url == null) {
                  throw new RuntimeException("Resource '" + resourcePathAndName + "' not found!");
              }
              final InputStream in = url.openStream();
              try {
                  return load(in);
              } finally {
                  in.close();
              }
          } catch (final IOException ex) {
              throw new RuntimeException(ex);
          }
  
      }
docs: Load dependencies from a resource.
  
  @param clasz
  Class to use for loading the resource - Cannot be <code>null</code>.
  @param resourcePathAndName
  Name and path of the XML file (in the class path) - Cannot be <code>null</code>.
  
  @return New dependencies instance.