private static XMLStreamReader getXMLStreamReader(InputStream stream, VirtualFile ejbJarXml, XMLResolver resolver) throws DeploymentUnitProcessingException {
    """
	Creates and returns a {@link XMLStreamReader} for the passed {@link VirtualFile ejb-jar.xml}
	
	@param stream    The input stream
	@param ejbJarXml
	@return
	@throws DeploymentUnitProcessingException
    """
        try {
            final XMLInputFactory inputFactory = XMLInputFactory.newInstance();
            inputFactory.setXMLResolver(resolver);
            XMLStreamReader xmlReader = inputFactory.createXMLStreamReader(stream);
            return xmlReader;
        } catch (XMLStreamException xmlse) {
            throw EjbLogger.ROOT_LOGGER.failedToParse(xmlse, "ejb-jar.xml: " + ejbJarXml.getPathName());
        }
    }
private static XMLStreamReader getXMLStreamReader(InputStream stream, VirtualFile ejbJarXml, XMLResolver resolver) throws DeploymentUnitProcessingException {
        try {
            final XMLInputFactory inputFactory = XMLInputFactory.newInstance();
            inputFactory.setXMLResolver(resolver);
            XMLStreamReader xmlReader = inputFactory.createXMLStreamReader(stream);
            return xmlReader;
        } catch (XMLStreamException xmlse) {
            throw EjbLogger.ROOT_LOGGER.failedToParse(xmlse, "ejb-jar.xml: " + ejbJarXml.getPathName());
        }
    }
private static XMLStreamReader getXMLStreamReader ( InputStream stream , VirtualFile ejbJarXml , XMLResolver resolver ) throws DeploymentUnitProcessingException { try { final XMLInputFactory inputFactory = XMLInputFactory . newInstance ( ) ; inputFactory . setXMLResolver ( resolver ) ; XMLStreamReader xmlReader = inputFactory . createXMLStreamReader ( stream ) ; return xmlReader ; } catch ( XMLStreamException xmlse ) { throw EjbLogger . ROOT_LOGGER . failedToParse ( xmlse , "ejb-jar.xml: " + ejbJarXml . getPathName ( ) ) ; } }
Creates and returns a {@link XMLStreamReader} for the passed {@link VirtualFile ejb-jar.xml}

@param stream    The input stream
@param ejbJarXml
@return
@throws DeploymentUnitProcessingException
Creates and returns a { @link XMLStreamReader } for the passed { @link VirtualFile ejb - jar . xml }