throws InvalidQueryExpressionException,
UnknownQueryExpressionDialectException
{
if ( !queryExpr.getDialect( ).equals( QueryConstants.DIALECT_URI__XPATH1_0 ) )
{
throw new UnknownQueryExpressionDialectException( queryExpr.getDialect( ) );
}
if ( queryExpr.getContent( ) == null || ! ( queryExpr.getContent( ) instanceof String ) )
{
throw new InvalidQueryExpressionException( queryExpr );
}