/**
  * Get Document from an inputstream
  *
  * @param is
  * @return
  * @throws ParserConfigurationException
  * @throws IOException
  * @throws SAXException
  */
 public static Document getDocument(InputStream is)
     throws ConfigurationException, ProcessingException, ParsingException {
   DocumentBuilderFactory factory = getDocumentBuilderFactory();
   try {
     DocumentBuilder builder = factory.newDocumentBuilder();
     return builder.parse(is);
   } catch (ParserConfigurationException e) {
     throw logger.configurationError(e);
   } catch (SAXException e) {
     throw logger.parserError(e);
   } catch (IOException e) {
     throw logger.processingError(e);
   }
 }