class SonarConnection implements MetricCapability, TestCapability {

    @Override
    public boolean isProjectDisabled(SoftwareProjectId softwareProjectId) throws ProjectNotFoundException {
        checkConnected();
        checkSoftwareProjectId(softwareProjectId);
        try {
            String artifactId = softwareProjectId.getProjectId();
            sonarClient.findProject(artifactId);
        } catch (SonarProjectNotFoundException e) {
            throw new ProjectNotFoundException("Can't find if project is disabled, softwareProjectId:"
                    + softwareProjectId + ", url: " + url);
        }
        return false;
    }

    public  SonarConnection();

}