// Current approach. MobiletSender sender = new MobiletSender(wsnManager.getMobiletContext().getContextURL()); sender.send(".\\build\\edu\\nthucs\\inetlab\\sensor\\agent\\DataQuery.class", "edu.nthucs.inetlab.sensor.agent.DataQuery", null); // I want to do this Mobilet myMobilet = myMobiletContext.createMobilet(); myMobilet.setProperty("name", "Lalala"); myMobilet.setProperty("money", "1000"); myMobletContext.sendMobilet(myMobilet);