private String getPath(CmsObject cms, HttpSession session) {

        CmsQuickLaunchLocationCache locationCache = CmsQuickLaunchLocationCache.getLocationCache(session);
        String page = locationCache.getPageEditorLocation(cms.getRequestContext().getSiteRoot());
        if (page == null) {
            try {
                CmsResource mainDefaultFile = cms.readDefaultFile("/");
                if (mainDefaultFile != null) {
                    page = cms.getSitePath(mainDefaultFile);
                }
            } catch (CmsException e) {
                LOG.error(e.getLocalizedMessage(), e);
            }
        }
        return page;
    }
private String getPath ( CmsObject cms , HttpSession session ) { CmsQuickLaunchLocationCache locationCache = CmsQuickLaunchLocationCache . getLocationCache ( session ) ; String page = locationCache . getPageEditorLocation ( cms . getRequestContext ( ) . getSiteRoot ( ) ) ; if ( page == null ) { try { CmsResource mainDefaultFile = cms . readDefaultFile ( "/" ) ; if ( mainDefaultFile != null ) { page = cms . getSitePath ( mainDefaultFile ) ; } } catch ( CmsException e ) { LOG . error ( e . getLocalizedMessage ( ) , e ) ; } } return page ; }
Returns the page editor path to open.<p>

@param cms the cms context
@param session the user session

@return the path or <code>null</code>