RepositoryConfig config = source.getRepositoryConfig();
String name = config.getDefaultWorkspaceName();
PersistenceManager pm =
source.getWorkspaceInfo(name).getPersistenceManager();
NamespaceRegistryImpl nr = source.getNamespaceRegistry();
NodeState state = new JackrabbitNodeState(pm, nr, ROOT_NODE_ID);
for (PropertyState property : state.getProperties()) {
root.setProperty(property);
}