code: public Configuration create(InputStream stream) {
          try {
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              factory.setValidating(false);
              factory.setIgnoringElementContentWhitespace(true);
              factory.setNamespaceAware(true);
              DocumentBuilder documentBuilder = factory.newDocumentBuilder();
              Document document = documentBuilder.parse(stream);
              return domConfigurationFactory.create(document);
          } catch (ParserConfigurationException e) {
              throw new TextProcessorFactoryException(e);
          } catch (IOException e) {
              throw new TextProcessorFactoryException(e);
          } catch (SAXException e) {
              throw new TextProcessorFactoryException(e);
          }
      }
docs: Create the bb-processor from XML InputStream
  
  @param stream the input stream with XML
  @return bb-code processor
  @throws TextProcessorFactoryException when can't build Document