Description
instead of accessing the tree first and re-iterating over all path segments if it doesn't exist, the latter could be done right away and in addition use TreeUtil.getOrAddChild, which also will take care of throw AccessDeniedException.
instead of accessing the tree first and re-iterating over all path segments if it doesn't exist, the latter could be done right away and in addition use TreeUtil.getOrAddChild, which also will take care of throw AccessDeniedException.