code: public static Map<String,List<ProtocolConfiguration>> parse(InputStream input) throws Exception {
          DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
          factory.setValidating(false); // for now
          DocumentBuilder builder=factory.newDocumentBuilder();
          Document document=builder.parse(input);
          Element root=document.getDocumentElement();
          return parse(root);
      }
docs: Parses the input and returns a map of fork-stack IDs and lists of ProtocolConfigurations