code: protected String extractHeaderComment( File xmlFile )
          throws MojoExecutionException
      {
  
          try
          {
              SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
              SaxHeaderCommentHandler handler = new SaxHeaderCommentHandler();
              parser.setProperty( "http://xml.org/sax/properties/lexical-handler", handler );
              parser.parse( xmlFile, handler );
              return handler.getHeaderComment();
          }
          catch ( Exception e )
          {
              throw new MojoExecutionException( "Failed to parse XML from " + xmlFile, e );
          }
      }
docs: This method extracts the XML header comment if available.
  
  @param xmlFile is the XML {@link File} to parse.
  @return the XML comment between the XML header declaration and the root tag or <code>null</code> if NOT
  available.
  @throws MojoExecutionException if anything goes wrong.