protected static OpenCmsCore getInstance() {

        if (m_errorCondition != null) {
            // OpenCms is not properly initialized
            throw new CmsInitException(m_errorCondition, false);
        }

        if (m_instance != null) {
            return m_instance;
        }
        synchronized (LOCK) {
            if (m_instance == null) {
                try {
                    // create a new core object with runlevel 1
                    m_instance = new OpenCmsCore();
                } catch (CmsInitException e) {
                    // already initialized, this is all we need
                    LOG.debug(e.getMessage(), e);
                }
            }
        }
        return m_instance;
    }
protected static OpenCmsCore getInstance ( ) { if ( m_errorCondition != null ) { throw new CmsInitException ( m_errorCondition , false ) ; } if ( m_instance != null ) { return m_instance ; } synchronized ( LOCK ) { if ( m_instance == null ) { try { m_instance = new OpenCmsCore ( ) ; } catch ( CmsInitException e ) { LOG . debug ( e . getMessage ( ) , e ) ; } } } return m_instance ; }
Returns the initialized OpenCms singleton instance.<p>

@return the initialized OpenCms singleton instance