* If any answer (response) is received with a given id, store the answer
* here. The waiting thread for this message is called internally.
*/
private void addMessageResult(String id, String message) {
MIMEFormatReader reader = new JSONFormatReader();
// read in the message (JSON message result)
Bindings.instanceClass = lupos.datastructures.bindings.BindingsMap.class;
QueryResult qr = null;
try {
qr = reader.getQueryResult(
new ByteArrayInputStream(message.getBytes("UTF-8")),
message,bindingsFactory);
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}