SelectQuery query = (SelectQuery)command;
return new QueryObjectModel(context, expression, language, query, hints, storedAtPath);
}
if (command instanceof SetQuery) {
SetQuery query = (SetQuery)command;
return new SetQueryObjectModel(this.context, expression, language, query, hints, storedAtPath);
}
JcrQueryContext context = new SessionQueryContext(session);
return new JcrQuery(context, expression, language, command, hints, storedAtPath);
}