private QueryResourcePropertiesResponseDocument.QueryResourcePropertiesResponse queryResourceProperties( String xPathExpr, URI dialect )
{
QueryResourcePropertiesProvider provider = new QueryResourcePropertiesProvider( m_resourceContext );
QueryResourcePropertiesDocument doc = QueryResourcePropertiesDocument.Factory.newInstance();
QueryResourcePropertiesDocument.QueryResourceProperties queryResourceProperties = doc.addNewQueryResourceProperties();
QueryExpressionType queryExpressionType = queryResourceProperties.addNewQueryExpression();
queryExpressionType.setDialect( dialect.toString() );
XmlBeanUtils.setValue( queryExpressionType, xPathExpr );
QueryResourcePropertiesResponseDocument queryResourcePropertiesResponseDocument = provider.queryResourceProperties( doc );
QueryResourcePropertiesResponseDocument.QueryResourcePropertiesResponse queryResourcePropertiesResponse =
queryResourcePropertiesResponseDocument.getQueryResourcePropertiesResponse();
return queryResourcePropertiesResponse;