Securing Java with local policies