Playing with some Java Code for CoAP