code: public static Document unmarshalHelper(byte[] xmlData, EntityResolver resolver) throws CmsXmlException {
  
          return CmsXmlUtils.unmarshalHelper(new InputSource(new ByteArrayInputStream(xmlData)), resolver);
      }
docs: Helper to unmarshal (read) xml contents from a byte array into a document.<p>
  
  Using this method ensures that the OpenCms XML entity resolver is used.<p>
  
  @param xmlData the XML data in a byte array
  @param resolver the XML entity resolver to use
  
  @return the base object initialized with the unmarshalled XML document
  
  @throws CmsXmlException if something goes wrong
  
  @see CmsXmlUtils#unmarshalHelper(InputSource, EntityResolver)