A Java implementation of the SWAP protocol for integrating with panStamp devices