Added better wrtapped hooks for ensime/java/scala