private void purgePendingChanges() {
branch.setRoot(getRootState());
reset();
}
private void reset() {
<BUG>secureHead = new SecureNodeState(
branch.getHead(), getPermissionProvider(), getTypeProvider());
rootTree.reset(secureHead);</BUG>
}
@Nonnull

private void purgePendingChanges() {
branch.setRoot(getRootState());
reset();
}
private void reset() {
NodeState root = branch.getHead();
secureHead = new SecureNodeState(root, getRootContext(root));
rootTree.reset(secureHead);
}
@Nonnull
