if(status == null){    try { ISVNClientAdapter svnClientAdapterStatus = SVNProviderPlugin.getPlugin().createSVNClient(); status = svnClientAdapterStatus.getSingleStatus(resource.getLocation().toFile()); resource.setSessionProperty(RESOURCE_SYNC_KEY, status); } catch (SVNClientException e1) { throw SVNException.wrapException(e1); } catch (CoreException e) {   }  }
    public static ISVNStatus getStatus(IResource resource) throws SVNException {        ISVNStatus status = null;                try {            status = (ISVNStatus) resource.getSessionProperty(RESOURCE_SYNC_KEY);        } catch (CoreException e) {            // the resource does not exist            // we ignore the exception        }               if (status == null)        {            updateStatusSet(resource);                        try {                status = (ISVNStatus) resource.getSessionProperty(RESOURCE_SYNC_KEY);            } catch (CoreException e) {                // the resource does not exist                // we ignore the exception            }                    }        return status;    }