return this.createNode(name, json);
} catch (JSONException je) {
throw (IOException) new IOException(je.getMessage()).initCause(je);
}
}
<BUG>protected Node createNode(String name, JSONObject nodeDescriptor) throws JSONException {
</BUG>
Node node = new Node();
node.setName(name);
<BUG>Object primaryType = nodeDescriptor.opt("primaryNodeType");
</BUG>
if (primaryType != null) {

return this.createNode(name, json);
} catch (JSONException je) {
throw (IOException) new IOException(je.getMessage()).initCause(je);
}
}
protected Node createNode(String name, JSONObject obj) throws JSONException {
Node node = new Node();
node.setName(name);
Object primaryType = obj.opt("jcr:primaryType");
if (primaryType != null) {
