Securing Java with Local Policies