How to virtualize Java with isolation rules