SVNTeamProvider provider = (SVNTeamProvider) RepositoryProvider .getProvider(project, SVNProviderPlugin.getTypeId());
        boolean importExistingProject(IProgressMonitor monitor)                throws TeamException {            if (directory == null) {                return false;            }            try {                monitor.beginTask("Importing", 3 * 1000);                createExistingProject(new SubProgressMonitor(monitor, 1000));                monitor.subTask("Refreshing " + project.getName());                RepositoryProvider.map(project, SVNProviderPlugin.getTypeId());                SVNTeamProvider provider = (SVNTeamProvider) RepositoryProvider                        .getProvider(project, SVNProviderPlugin.getTypeId());                monitor.worked(1000);                SVNWorkspaceRoot.setSharing(project, new SubProgressMonitor(                        monitor, 1000));                return true;            } catch (CoreException ce) {                throw new SVNException("Failed to import External SVN Project"                        + ce, ce);            } finally {                monitor.done();            }        }