Adapt Java examples to latest IP Connection API