removed declaration of throwJavaException