if (sLog.isDebugEnabled()) sLog.debug("Created " + session);
if (ZimbraLog.session.isDebugEnabled()) ZimbraLog.session.debug("Created " + session);
    public static Session getNewSession(String accountId, int sessionType) {        if (sShutdown || accountId == null || accountId.trim().equals(""))            return null;        String sessionId = getNextSessionId();        Session session = null;        try {            switch (sessionType) {                case SESSION_IMAP:   session = new ImapSession(accountId, sessionId);   break;                case SESSION_ADMIN:  session = new AdminSession(accountId, sessionId);  break;                default:                case SESSION_SOAP:   session = new SoapSession(accountId, sessionId);   break;            }        } catch (ServiceException e) {            return null;        }        if (sLog.isDebugEnabled())            sLog.debug("Created " + session);        updateInCache(sessionId, session);        return session;    }