map.setByName(name, convert(node.get(name)));
}
return map;
} else if (node.isBinary()) {
try {
return new BytesScalar(node.binaryValue());
} catch (IOException e) {
throw new RuntimeException("Failure converting binary value.", e);
}
} else if (node.isBigDecimal()) {
throw new UnsupportedOperationException();