Patch Set 1:

This make code a little bit complicated when we only want to check does given uri is supported. It would be less complicated if the 'local' parameter would be allowed to be null. Currently the java-doc doesn't mention it can be null, it it is intended to allow local = null, it should be added into java-doc.