setDocumentType((String) manager.getObject("FrameCG.documentType", String.class)); setRenderXmlDeclaration((Boolean) manager.getObject("FrameCG.renderXmlDeclaration", Boolean.class));
final String userDocType = (String) manager.getObject("FrameCG.userDocType", String.class); final Boolean userRenderXmlDecl = (Boolean) manager.getObject("FrameCG.renderXmlDeclaration", Boolean.class); if (userDocType != null) setDocumentType(userDocType); if (userRenderXmlDecl != null) setRenderXmlDeclaration(userRenderXmlDecl);
    public FrameCG() {        final CGManager manager = SessionManager.getSession().getCGManager();        setDocumentType((String) manager.getObject("FrameCG.documentType", String.class));        setRenderXmlDeclaration((Boolean) manager.getObject("FrameCG.renderXmlDeclaration", Boolean.class));    }