public Iterator getSessions(String protocol) {
        Iterator value = null;
        if (protocol.equals("HTTP") && sessionManagersWithinApp != null) {
            ArrayList list = new ArrayList();
            for (Enumeration e = sessionManagersWithinApp.elements(); e.hasMoreElements();) {
                SessionManager sm = (SessionManager) e.nextElement();
                Object o = sm.getSession(_iSess.getId(), false);
                if (o != null) {
                    list.add(o);
                }
            }
            value = list.iterator();
        }
        return value;
    }
public Iterator getSessions ( String protocol ) { Iterator value = null ; if ( protocol . equals ( "HTTP" ) && sessionManagersWithinApp != null ) { ArrayList list = new ArrayList ( ) ; for ( Enumeration e = sessionManagersWithinApp . elements ( ) ; e . hasMoreElements ( ) ; ) { SessionManager sm = ( SessionManager ) e . nextElement ( ) ; Object o = sm . getSession ( _iSess . getId ( ) , false ) ; if ( o != null ) { list . add ( o ) ; } } value = list . iterator ( ) ; } return value ; }
/*
(non-Javadoc)

@see
com.ibm.websphere.servlet.session.IBMApplicationSession#getSessions(java
.lang.String)