added java2 opt-out code