is it common that `isReadOnly()` raised exception? if so, then exception is bad mechanism, if not, then I think some logging of exception should happen here.