code: public Configuration createFromResource(String resourceName) {
          Exceptions.nullArgument("resourceName", resourceName);
  
          Configuration configuration;
          try {
              InputStream stream = null;
              try {
                  stream = Utils.openResourceStream(resourceName);
  
                  if (stream != null) {
                      configuration = create(stream);
                  } else {
                      throw new TextProcessorFactoryException("Can't find or open resource \"" + resourceName + "\".");
                  }
              } finally {
                  if (stream != null) {
                      stream.close();
                  }
              }
          } catch (IOException e) {
              throw new TextProcessorFactoryException(e);
          }
  
          return configuration;
      }
docs: Create the bb-processor using xml-configuration resource
  
  @param resourceName name of resource file
  @return bb-code processor
  @throws TextProcessorFactoryException when can't find or read the resource or illegal config file