Fix security issue - restricting access to java classes