} else {
key.put(ID_FIELD, id.toString());
}
final BasicDBObject nodeObject = (BasicDBObject) nodes.findOne(key);
if (nodeObject != null) {
Binding binding;
if (BINARY_FORMAT) {
byte[] bytes = (byte[]) nodeObject.get(DATA_FIELD);
binding = new BinaryBinding(new ByteArrayInputStream(bytes));
} else {
binding = new DBObjectBinding(nodeObject);