@Override public SampleResult perform(JMeterXMPPSampler sampler, SampleResult res) throws Exception { BookmarkManager manager = BookmarkManager.getBookmarkManager(sampler.getXMPPConnection()); Collection<BookmarkedConference> confs = manager.getBookmarkedConferences(); StringBuilder text = new StringBuilder(); for (BookmarkedConference room : confs) { text.append(room.getJid()); text.append("\r\n"); } res.setResponseData(text.toString().getBytes()); return res; }