public void insertFederatedQueryOperator(final ASTService node, final OperatorConnection connection){
SeveralSucceedingOperators sso = new SeveralSucceedingOperators();
BasicOperator federatedQuery = this.getFederatedQuery(node);
Node child0 = node.jjtGetChild(0);
if(child0 instanceof ASTVar){
Sort sort = new Sort();
LinkedList<Variable> listOfVars = new LinkedList<Variable>();
listOfVars.add(new Variable(((ASTVar)child0).getName()));
ComparatorVariables comparator = new ComparatorVariables(listOfVars);
sort.setComparator(comparator);
Group group = new Group(comparator);
sort.addSucceedingOperator(group);
group.addSucceedingOperator(federatedQuery);
sso.addSucceedingOperator(sort);
} else {
sso.addSucceedingOperator(federatedQuery);
}