QueryCommand command,
PlanHints hints,
Path storedAtPath ) {
if (command instanceof SelectQuery) {
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);
}