protected DefaultServerDolphin resolveServerDolphin(HttpServletRequest request) {
        HttpSession session = request.getSession();
        DefaultServerDolphin serverDolphin = (DefaultServerDolphin) session.getAttribute(SERVER_DOLPHIN_ATTRIBUTE_ID);

        if (serverDolphin == null) {
            if (LOG.isLoggable(Level.FINEST)) {
                LOG.finest("creating new dolphin for session " + session.getId());
            }
            serverDolphin = createServerDolphin();
            configureServerDolphin(serverDolphin);
            session.setAttribute(SERVER_DOLPHIN_ATTRIBUTE_ID, serverDolphin);
        }

        return serverDolphin;
    }
protected DefaultServerDolphin resolveServerDolphin ( HttpServletRequest request ) { HttpSession session = request . getSession ( ) ; DefaultServerDolphin serverDolphin = ( DefaultServerDolphin ) session . getAttribute ( SERVER_DOLPHIN_ATTRIBUTE_ID ) ; if ( serverDolphin == null ) { if ( LOG . isLoggable ( Level . FINEST ) ) { LOG . finest ( "creating new dolphin for session " + session . getId ( ) ) ; } serverDolphin = createServerDolphin ( ) ; configureServerDolphin ( serverDolphin ) ; session . setAttribute ( SERVER_DOLPHIN_ATTRIBUTE_ID , serverDolphin ) ; } return serverDolphin ; }
Resolves the {@code DefaultServerDolphin} to be used. An instance of {@code DefaultServerDolphin}
should be available inside the HttpSession under the key {@code .DolphinServletSERVER_DOLPHIN_ATTRIBUTE_ID}.
A new instance will be created if such value cannot be found.

@param request - an HttpServletRequest object that contains the request the client has made of the servlet

@return an instance of {@code DefaultServerDolphin} either found in the HTTP session or newly created.