if (pictureChats == null) {
pictureChats = Collections.synchronizedMap(new HashMap<String, PictureChat>());
}
Collection col = pictureChats.values();
for (Iterator iter = col.iterator(); iter.hasNext();) {
PictureChat chat = (PictureChat)iter.next();
if (jid != null && jid.equals(chat.getJID())) {
chat.showWindow();
return;
}
}
String thread = backend.createThread();
pictureChats.put(thread, new PictureChat(backend, jid, thread));
}