Does getScheme() not work here?