fix javadoc, prevent usage of exceptions during adaptTo