} else {
this.writeStartHead(os);
boolean firstTime = true;
final Iterator<Variable> it_v = variables.iterator();
while(it_v.hasNext()){
final Variable v = it_v.next();
if(firstTime){
this.writeFirstVariableInHead(os, v);
firstTime = false;
} else {
this.writeVariableInHead(os, v);
}
}
if(this.writeQueryTriples){
this.writeQueryTriplesHead(os);
}
this.writeEndHead(os);
firstTime = true;
final Iterator<Bindings> it = queryResult.oneTimeIterator();
while(it.hasNext()){
if(firstTime){
this.writeFirstStartResult(os);
firstTime = false;
} else {
this.writeStartResult(os);
}
final Bindings bindings = it.next();
boolean firstTimeBinding = true;
final Iterator<Variable> it_v2 = this.getVariablesToIterateOnForOneBindings(variables, bindings);
while(it_v2.hasNext()){
final Variable v = it_v2.next();
if(firstTimeBinding){
this.writeFirstStartBinding(os, v);
firstTimeBinding = false;
} else {
this.writeStartBinding(os, v);