test_class.declarator: TEST_XML_CONTENT = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
                                                     + "<book send-by-post=\"true\">"
                                                     + "  <title>Java and XML Data Binding</title>"
                                                     + "  <author>Brett McLaughlin</author>"
                                                     + "  <price currency=\"USD\">34.95</price>"
                                                     + "</book>"
test_class.modifier: private static final
test_class.original_string: private static final String TEST_XML_CONTENT = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
                                                     + "<book send-by-post=\"true\">"
                                                     + "  <title>Java and XML Data Binding</title>"
                                                     + "  <author>Brett McLaughlin</author>"
                                                     + "  <price currency=\"USD\">34.95</price>"
                                                     + "</book>";
test_class.type: String
test_class.var_name: TEST_XML_CONTENT
test_class.declarator: TEST_XML_CONTENT_BYTES = TEST_XML_CONTENT.getBytes()
test_class.modifier: private static final
test_class.original_string: private static final byte[] TEST_XML_CONTENT_BYTES = TEST_XML_CONTENT.getBytes();
test_class.type: byte[]
test_class.var_name: TEST_XML_CONTENT_BYTES
test_class.declarator: XPATH_EXPR_TO_VALUE = ImmutableMap.of(
              "/book/@send-by-post", "true",
              "/book/title", "Java and XML Data Binding",
              "/book/author", "Brett McLaughlin",
              "/book/price/@currency", "USD",
              "/book/price","34.95")
test_class.modifier: private static final
test_class.original_string: private static final Map<String, String> XPATH_EXPR_TO_VALUE = ImmutableMap.of(
              "/book/@send-by-post", "true",
              "/book/title", "Java and XML Data Binding",
              "/book/author", "Brett McLaughlin",
              "/book/price/@currency", "USD",
              "/book/price","34.95");
test_class.type: Map<String, String>
test_class.var_name: XPATH_EXPR_TO_VALUE
test_class.declarator: domSourceEntityProvider
test_class.modifier: private
test_class.original_string: private DOMSourceEntityProvider domSourceEntityProvider;
test_class.type: DOMSourceEntityProvider
test_class.var_name: domSourceEntityProvider
test_class.file: everrest-core/src/test/java/org/everrest/core/impl/provider/DOMSourceEntityProviderTest.java
test_class.identifier: DOMSourceEntityProviderTest
test_case.body: @Test
      public void readsContentOfEntityStreamAsDOMSource() throws Exception {
          DOMSource domSource = domSourceEntityProvider.readFrom(DOMSource.class, null, null, APPLICATION_XML_TYPE, new MultivaluedMapImpl(),
                                                                 new ByteArrayInputStream(TEST_XML_CONTENT_BYTES));
  
          Node document = domSource.getNode();
          assertThatXmlDocumentContainsAllExpectedNodes(document);
      }
test_case.class_method_signature: DOMSourceEntityProviderTest.readsContentOfEntityStreamAsDOMSource()
test_case.full_signature: @Test public void readsContentOfEntityStreamAsDOMSource()
test_case.identifier: readsContentOfEntityStreamAsDOMSource
test_case.invocations: readFrom getNode assertThatXmlDocumentContainsAllExpectedNodes
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void readsContentOfEntityStreamAsDOMSource()
focal_class.declarator: LOG = LoggerFactory.getLogger(DOMSourceEntityProvider.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(DOMSourceEntityProvider.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.file: everrest-core/src/main/java/org/everrest/core/impl/provider/DOMSourceEntityProvider.java
focal_class.identifier: DOMSourceEntityProvider
focal_class.interfaces: implements EntityProvider<DOMSource>
focal_class.class_method_signature: DOMSourceEntityProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.full_signature: @Override public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.identifier: isReadable
focal_class.modifiers: @Override public
focal_class.parameters: (Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.return: boolean
focal_class.signature: boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.class_method_signature: DOMSourceEntityProvider.readFrom(Class<DOMSource> type,
                                Type genericType,
                                Annotation[] annotations,
                                MediaType mediaType,
                                MultivaluedMap<String, String> httpHeaders,
                                InputStream entityStream)
focal_class.full_signature: @Override public DOMSource readFrom(Class<DOMSource> type,
                                Type genericType,
                                Annotation[] annotations,
                                MediaType mediaType,
                                MultivaluedMap<String, String> httpHeaders,
                                InputStream entityStream)
focal_class.identifier: readFrom
focal_class.modifiers: @Override public
focal_class.parameters: (Class<DOMSource> type,
                                Type genericType,
                                Annotation[] annotations,
                                MediaType mediaType,
                                MultivaluedMap<String, String> httpHeaders,
                                InputStream entityStream)
focal_class.return: DOMSource
focal_class.signature: DOMSource readFrom(Class<DOMSource> type,
                                Type genericType,
                                Annotation[] annotations,
                                MediaType mediaType,
                                MultivaluedMap<String, String> httpHeaders,
                                InputStream entityStream)
focal_class.class_method_signature: DOMSourceEntityProvider.createFeaturedDocumentBuilderFactory()
focal_class.full_signature: private DocumentBuilderFactory createFeaturedDocumentBuilderFactory()
focal_class.identifier: createFeaturedDocumentBuilderFactory
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: DocumentBuilderFactory
focal_class.signature: DocumentBuilderFactory createFeaturedDocumentBuilderFactory()
focal_class.class_method_signature: DOMSourceEntityProvider.getSize(DOMSource t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.full_signature: @Override public long getSize(DOMSource t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.identifier: getSize
focal_class.modifiers: @Override public
focal_class.parameters: (DOMSource t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.return: long
focal_class.signature: long getSize(DOMSource t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.class_method_signature: DOMSourceEntityProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.full_signature: @Override public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.identifier: isWriteable
focal_class.modifiers: @Override public
focal_class.parameters: (Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.return: boolean
focal_class.signature: boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.class_method_signature: DOMSourceEntityProvider.writeTo(DOMSource domSource,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)
focal_class.full_signature: @Override public void writeTo(DOMSource domSource,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)
focal_class.identifier: writeTo
focal_class.modifiers: @Override public
focal_class.parameters: (DOMSource domSource,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)
focal_class.return: void
focal_class.signature: void writeTo(DOMSource domSource,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)
focal_class.class_method_signature: DOMSourceEntityProvider.createFeaturedTransformerFactory()
focal_class.full_signature: private TransformerFactory createFeaturedTransformerFactory()
focal_class.identifier: createFeaturedTransformerFactory
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: TransformerFactory
focal_class.signature: TransformerFactory createFeaturedTransformerFactory()
focal_method.body: @Override
      public DOMSource readFrom(Class<DOMSource> type,
                                Type genericType,
                                Annotation[] annotations,
                                MediaType mediaType,
                                MultivaluedMap<String, String> httpHeaders,
                                InputStream entityStream) throws IOException {
          try {
              DocumentBuilderFactory factory = createFeaturedDocumentBuilderFactory();
              factory.setNamespaceAware(true);
              Document d = factory.newDocumentBuilder().parse(entityStream);
              return new DOMSource(d);
          } catch (SAXParseException saxpe) {
              LOG.debug(saxpe.getMessage(), saxpe);
              return null;
          } catch (SAXException | ParserConfigurationException saxe) {
              throw new IOException(String.format("Can't read from input stream, %s", saxe));
          }
      }
focal_method.class_method_signature: DOMSourceEntityProvider.readFrom(Class<DOMSource> type,
                                Type genericType,
                                Annotation[] annotations,
                                MediaType mediaType,
                                MultivaluedMap<String, String> httpHeaders,
                                InputStream entityStream)
focal_method.full_signature: @Override public DOMSource readFrom(Class<DOMSource> type,
                                Type genericType,
                                Annotation[] annotations,
                                MediaType mediaType,
                                MultivaluedMap<String, String> httpHeaders,
                                InputStream entityStream)
focal_method.identifier: readFrom
focal_method.invocations: createFeaturedDocumentBuilderFactory setNamespaceAware parse newDocumentBuilder debug getMessage format
focal_method.modifiers: @Override public
focal_method.parameters: (Class<DOMSource> type,
                                Type genericType,
                                Annotation[] annotations,
                                MediaType mediaType,
                                MultivaluedMap<String, String> httpHeaders,
                                InputStream entityStream)
focal_method.return: DOMSource
focal_method.signature: DOMSource readFrom(Class<DOMSource> type,
                                Type genericType,
                                Annotation[] annotations,
                                MediaType mediaType,
                                MultivaluedMap<String, String> httpHeaders,
                                InputStream entityStream)