this.workspaceName = checkNotNull(workspaceName);
this.subject = checkNotNull(subject);
this.securityProvider = checkNotNull(securityProvider);
this.indexProvider = indexProvider;
branch = this.store.branch();
<BUG>secureHead = new SecureNodeState(
branch.getHead(), getPermissionProvider(), getTypeProvider());
rootTree = new TreeImpl(this, secureHead.builder(), lastMove);</BUG>
}
public RootImpl(NodeStore store) {

this.workspaceName = checkNotNull(workspaceName);
this.subject = checkNotNull(subject);
this.securityProvider = checkNotNull(securityProvider);
this.indexProvider = indexProvider;
branch = this.store.branch();
NodeState root = branch.getHead();
secureHead = new SecureNodeState(root, getRootContext(root));
rootTree = new TreeImpl(this, secureHead.builder(), lastMove);
}
public RootImpl(NodeStore store) {
