private void update(Presence p) { if (!p.type.equals("show")) return; Endpoint ep = registry.get(p.fromOid); if (ep != null) { if (!ep.show.equals(p.show)) ep.show = p.show; if (!ep.status.equals(p.status)) ep.status = p.status; } else { System.err.println("NULL Endpoint when update presence: " + p.fromOid.toString()); } }