public CmsXmlContentDefinition getContentDefinition() throws CmsRuntimeException {

        if (m_xmlPageContentDefinition == null) {
            // since XML page schema is cached anyway we don't need an CmsObject instance
            CmsXmlEntityResolver resolver = new CmsXmlEntityResolver(null);
            InputSource source;
            try {
                source = resolver.resolveEntity(null, XMLPAGE_XSD_SYSTEM_ID);
                // store content definition in static variable
                m_xmlPageContentDefinition = CmsXmlContentDefinition.unmarshal(source, XMLPAGE_XSD_SYSTEM_ID, resolver);
            } catch (CmsXmlException e) {
                throw new CmsRuntimeException(
                    Messages.get().container(Messages.ERR_XML_PAGE_UNMARSHAL_CONTENDDEF_0),
                    e);
            } catch (IOException e) {
                throw new CmsRuntimeException(
                        Messages.get().container(Messages.ERR_XML_PAGE_UNMARSHAL_CONTENDDEF_0),
                        e);
            }
        }
        return m_xmlPageContentDefinition;
    }
public CmsXmlContentDefinition getContentDefinition ( ) throws CmsRuntimeException { if ( m_xmlPageContentDefinition == null ) { CmsXmlEntityResolver resolver = new CmsXmlEntityResolver ( null ) ; InputSource source ; try { source = resolver . resolveEntity ( null , XMLPAGE_XSD_SYSTEM_ID ) ; m_xmlPageContentDefinition = CmsXmlContentDefinition . unmarshal ( source , XMLPAGE_XSD_SYSTEM_ID , resolver ) ; } catch ( CmsXmlException e ) { throw new CmsRuntimeException ( Messages . get ( ) . container ( Messages . ERR_XML_PAGE_UNMARSHAL_CONTENDDEF_0 ) , e ) ; } catch ( IOException e ) { throw new CmsRuntimeException ( Messages . get ( ) . container ( Messages . ERR_XML_PAGE_UNMARSHAL_CONTENDDEF_0 ) , e ) ; } } return m_xmlPageContentDefinition ; }
@see org.opencms.xml.I_CmsXmlDocument#getContentDefinition()