if (s == null) { continue; } else if (username.equals(s.getUID())) {
if (s != null && username.equals(s.getUID())) {
    public List getSessionsForUsername(String username) {        ArrayList list = new ArrayList();        if (username == null) {            return list;        }        Enumeration e = sessions.elements();        while (e.hasMoreElements()) {            Session s = (Session) e.nextElement();            if (s == null) {                continue;            } else if (username.equals(s.getUID())) {                // append to list if session is logged in and fits the given username                list.add(new SessionBean(s));            }        }        return list;    }