code: public static Object parseResourceAdapterXml(InputStream xmlStream, String name, boolean version10) throws JAXBException, SAXException, ParserConfigurationException {
          SAXParserFactory factory = SAXParserFactory.newInstance();
          if (!version10) {
              factory.setNamespaceAware(true);
          }
          factory.setValidating(false);
          SAXParser parser = factory.newSAXParser();
          NamespaceFilter filter = null;
          if (!version10) {
              filter = new NamespaceFilter();
              filter.setParent(parser.getXMLReader());
          }
          parser.getXMLReader().setEntityResolver(resolver);
          Unmarshaller unmarshaller = null;
          if (name.equals("ra.xml") && !version10) {
              unmarshaller = raContext.createUnmarshaller();
          } else if (name.equals("ra.xml") && version10) {
              unmarshaller = ra10Context.createUnmarshaller();
          } else {
              unmarshaller = wlpRaContext.createUnmarshaller();
          }
          SAXSource source = null;
          if (!version10) {
              filter.setContentHandler(unmarshaller.getUnmarshallerHandler());
              source = new SAXSource(filter, new InputSource(xmlStream));
          } else {
              parser.getXMLReader().setContentHandler(unmarshaller.getUnmarshallerHandler());
              source = new SAXSource(parser.getXMLReader(), new InputSource(xmlStream));
          }
          Object connector = unmarshaller.unmarshal(source);
          if (connector instanceof Ra10Connector) {
              RaConnector temp = new RaConnector();
              temp.copyRa10Settings((Ra10Connector) connector);
              connector = temp;
          }
  
          return connector;
      }
docs: Converts a ra.xml (or wlp-ra.xml) into a RaConnector/RaConnector10 or WlpRaConnector object.
  
  @param xmlStream the stream to the wlp-/ra.xml file
  @return the parsed xml file
  @throws SAXException
  @throws JAXBException
  @throws ParserConfigurationException