SugDirectoryNode sdn = new SugDirectoryNode();
sdn.setId(resource.getResource().toString());
sdn.setLevel(++level);
sdn.setStandalone(standalone);
nc.setContent(sdn);
nc.toJSON(buffer);
}
this.bookmarksTree(it2, buffer, viewer, depth, session, level, parentIsOwner, standalone,true,inOwn,serviceAddr,selectedUri,pathsToUri);
//if we were created virtual directory, we should decrement the level.
if(it2!=null&&it2.hasNext()&&afterTheOwner)