class SonarConnectionFactory {

    public SonarConnection create(String url, String login, String password) {
        Preconditions.checkNotNull(url, "url is mandatory");
        SonarConnection sonarConnection = new SonarConnection();
        sonarConnection.connect(url, login, password);
        return sonarConnection;
    }

}