private void doImport( String workspaceName,
InputStream initialContentFileStream ) throws RepositoryException {
JcrSession internalSession = repository.loginInternalSession(workspaceName);
ImportDestination importDestination = new ImportDestination(internalSession);
NodeImportXmlHandler handler = new NodeImportXmlHandler(importDestination);
try {
XMLReader reader = XMLReaderFactory.createXMLReader();
reader.setContentHandler(handler);
reader.setErrorHandler(handler);
reader.parse(new InputSource(initialContentFileStream));