Adapted XBee API with purejavacomm