Puts the Java method search outside the askOption

Searching for a Java method may trigger some AskLoadedType in the
presentation compiler, so it cannot be done while inside its thread.
Merge pull request #203 from skyluc/issue/reentrant-askloadedtype-202

Ugly fix for hyperlinking to Java from routes editor