*/
protected final static String guessXQueryEncoding(InputStream is) {
final XQueryLexer lexer = new XQueryLexer(null, new InputStreamReader(is));
final DeclScanner scanner = new DeclScanner(lexer);
try {
scanner.versionDecl();
} catch (final RecognitionException e) {
//Nothing to do
} catch (final TokenStreamException e) {
//Nothing to do
} catch (final XPathException e) {