Add function to lookup application in JVM, but not in current thread:
usefull for internal hooks