added dynamic behaviour for Exception handling
imports are not working yet. only from Java to Java