Status status = localRoot.getStatus(); if (!status.isManaged()) { throw new SVNException(Policy.bind("SVNWorkspaceRoot.notSVNFolder", localRoot.getName())); } url = SVNClientAdapter.svnUrlToJavaUrl(status.getUrl()); } catch (SVNException e1) { throw SVNException.wrapException(e1); }
url = new SVNUrl(status.getUrl()); } catch (MalformedURLException e) { throw SVNException.wrapException(e); }
	public ISVNRepositoryLocation getRepository() throws SVNException {		if (url == null)        {            try {                Status status = localRoot.getStatus();                if (!status.isManaged()) {                    throw new SVNException(Policy.bind("SVNWorkspaceRoot.notSVNFolder", localRoot.getName()));  //$NON-NLS-1$                }                url = SVNClientAdapter.svnUrlToJavaUrl(status.getUrl());            } catch (SVNException e1) {                 throw SVNException.wrapException(e1);            }         }		return SVNProviderPlugin.getPlugin().getRepository(url.toString());	}