*/
public SearchQuery parseQuery (Element basicSearchElement, SearchToken token, PropertyProvider propertyProvider) throws BadQueryException {
boolean useEnvelope = true;
QueryScope scope = BasicQueryImpl.getScope (basicSearchElement);
IBasicQuery query = null;
if (useEnvelope) {
query = new BasicQueryEnvelope (token, scope);
}
else {
// Uri uri = new Uri (token.getNamespace(), );
Uri uri = token.getNamespace().getUri(token.getSlideToken(), token.getSlideContext().getSlidePath(scope.getHref()));
AbstractStore store = (AbstractStore)uri.getStore();
String className = (String)store.getParameter (BASIC_QUERY_CLASS);
if (className != null) {