Query like:
SELECT * WHERE { SERVICE <http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org> { SELECT * WHERE { ?x ?y ?z } LIMIT 10 } }
does not work because ConnectOptions.addQueryParams() tries to add second ? to the URL string which is certainly wrong.