protected void doPost(
HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
Root root = (Root) request.getAttribute("root");
<BUG>Tree tree = (Tree) request.getAttribute("tree");
ObjectMapper mapper = new ObjectMapper();</BUG>
JsonNode node = mapper.readTree(request.getInputStream());
if (node.isObject()) {
post(node, tree);

protected void doPost(
HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
Root root = (Root) request.getAttribute("root");
Tree tree = (Tree) request.getAttribute("tree");
String path = (String) request.getAttribute("path");
for (String name : PathUtils.elements(path)) {
tree = tree.addChild(name);
}
ObjectMapper mapper = new ObjectMapper();
JsonNode node = mapper.readTree(request.getInputStream());
if (node.isObject()) {
post(node, tree);
