if (startingLocation.getPath().isRoot()) {
// The properties of the root node generally don't include the primary type, but we need to add it here ...
Property rootPrimaryType = context.getPropertyFactory().create(JcrLexicon.PRIMARY_TYPE, DnaLexicon.ROOT);
properties.put(JcrLexicon.PRIMARY_TYPE, rootPrimaryType);
}
UpdatePropertiesRequest request = new UpdatePropertiesRequest(topNode, workspaceName, properties, true);
request.setActualLocationOfNode(topNode);
process(request);
checkRequestForErrors(request);
// Create a queue that we'll use to walk the content ...
LinkedList<Location> locationsToRead = new LinkedList<Location>();