int currentEvent = parser.getEventType();
while (parser.hasNext() && !endOfResult(currentEvent)) {
if (startOfBinding(currentEvent)) {
resultParser.getOneBinding(variableToValue);
} else if (startOfBoolean(currentEvent)) {
variableToValue.put("", new TypeValueImpl(BOOLEAN, parser.getElementText()));
}
currentEvent = parser.next();
}
return variableToValue;
}