class DemoPlugin implements VisuwallPlugin<DemoConnection> {

    @Override
    public DemoConnection getConnection(URL url, Map<String, String> properties) throws ConnectionException {
        if (url == null || !DEMO_VISUWALL_CI.equals(url.toString())) {
            throw new ConnectionException(getName() + " is not compatible with url : " + url);
        }
        DemoConnection connection = new DemoConnection();
        connection.connect(url.toString(), null, null);
        return connection;
    }

}