//# 0 errors, 311 messages
//#
/*
    //#htmlview.java:1:1: class: net.sourceforge.pebble.web.view.HtmlView
 * Copyright (c) 2003-2006, Simon Brown
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *   - Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *
 *   - Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in
 *     the documentation and/or other materials provided with the
 *     distribution.
 *
 *   - Neither the name of Pebble nor the names of its contributors may
 *     be used to endorse or promote products derived from this software
 *     without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
package net.sourceforge.pebble.web.view;

import java.io.File;
import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import net.sourceforge.pebble.Constants;
import net.sourceforge.pebble.PebbleContext;
import net.sourceforge.pebble.domain.AbstractBlog;
import net.sourceforge.pebble.domain.Blog;
import net.sourceforge.pebble.domain.StaticPage;
import net.sourceforge.pebble.util.I18n;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * Represents a HTML view component, implemented by a JSP
 * and prepares the model for display.
 *
 * @author    Simon Brown
 */
public abstract class HtmlView extends JspView {
    //#htmlview.java:59: method: void net.sourceforge.pebble.web.view.HtmlView.net.sourceforge.pebble.web.view.HtmlView()
    //#input(void net.sourceforge.pebble.web.view.HtmlView()): this
    //#unanalyzed(void net.sourceforge.pebble.web.view.HtmlView()): Effects-of-calling:net.sourceforge.pebble.web.view.View
    //#htmlview.java:59: end of method: void net.sourceforge.pebble.web.view.HtmlView.net.sourceforge.pebble.web.view.HtmlView()

  public static final String SYSTEM_THEME = "_pebble";
  public static final String DEFAULT_THEME = "default";

  private static Log log = LogFactory.getLog(HtmlView.class);
    //#htmlview.java:64: method: net.sourceforge.pebble.web.view.HtmlView.net.sourceforge.pebble.web.view.HtmlView__static_init
    //#htmlview.java:64: Warning: method not available
    //#    -- call on Log org.apache.commons.logging.LogFactory:getLog(Class)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: net.sourceforge.pebble.web.view.HtmlView__static_init
    //#    unanalyzed callee: Log org.apache.commons.logging.LogFactory:getLog(Class)
    //#output(net.sourceforge.pebble.web.view.HtmlView__static_init): __Descendant_Table[net/sourceforge/pebble/web/view/HtmlView]
    //#output(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.dispatch(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/ServletContext;)V
    //#output(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.getContentType()Ljava/lang/String;
    //#output(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.getLocalizedString(Ljava/lang/String;)Ljava/lang/String;
    //#output(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#output(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.getServletContext()Ljavax/servlet/ServletContext;
    //#output(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.getStatus()I
    //#output(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.getTemplate()Ljava/lang/String;
    //#output(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.getTheme()Ljava/lang/String;
    //#output(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.getTitle()Ljava/lang/String;
    //#output(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.getUri()Ljava/lang/String;
    //#output(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.prepare()V
    //#output(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.setModel(Lnet/sourceforge/pebble/web/model/Model;)V
    //#output(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.setServletContext(Ljavax/servlet/ServletContext;)V
    //#output(net.sourceforge.pebble.web.view.HtmlView__static_init): log
    //#output(net.sourceforge.pebble.web.view.HtmlView__static_init): net/sourceforge/pebble/web/view/JspView.__Descendant_Table[net/sourceforge/pebble/web/view/HtmlView]
    //#output(net.sourceforge.pebble.web.view.HtmlView__static_init): net/sourceforge/pebble/web/view/View.__Descendant_Table[net/sourceforge/pebble/web/view/HtmlView]
    //#post(net.sourceforge.pebble.web.view.HtmlView__static_init): __Descendant_Table[net/sourceforge/pebble/web/view/HtmlView] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.view.HtmlView__static_init): net/sourceforge/pebble/web/view/JspView.__Descendant_Table[net/sourceforge/pebble/web/view/HtmlView] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.view.HtmlView__static_init): net/sourceforge/pebble/web/view/View.__Descendant_Table[net/sourceforge/pebble/web/view/HtmlView] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.dispatch(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/ServletContext;)V == &dispatch
    //#post(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.getContentType()Ljava/lang/String; == &getContentType
    //#post(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.getLocalizedString(Ljava/lang/String;)Ljava/lang/String; == &getLocalizedString
    //#post(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model; == &net/sourceforge/pebble/web/view/View.getModel
    //#post(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.getServletContext()Ljavax/servlet/ServletContext; == &net/sourceforge/pebble/web/view/View.getServletContext
    //#post(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.getStatus()I == &getStatus
    //#post(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.getTemplate()Ljava/lang/String; == &getTemplate
    //#post(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.getTheme()Ljava/lang/String; == &getTheme
    //#post(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.getTitle()Ljava/lang/String; == &getTitle
    //#post(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.getUri()Ljava/lang/String; == &net/sourceforge/pebble/web/view/JspView.getUri
    //#post(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.prepare()V == &net/sourceforge/pebble/web/view/View.prepare
    //#post(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.setModel(Lnet/sourceforge/pebble/web/model/Model;)V == &net/sourceforge/pebble/web/view/View.setModel
    //#post(net.sourceforge.pebble.web.view.HtmlView__static_init): __Dispatch_Table.setServletContext(Ljavax/servlet/ServletContext;)V == &net/sourceforge/pebble/web/view/View.setServletContext
    //#post(net.sourceforge.pebble.web.view.HtmlView__static_init): init'ed(log)
    //#htmlview.java:64: end of method: net.sourceforge.pebble.web.view.HtmlView.net.sourceforge.pebble.web.view.HtmlView__static_init

  /**
   * Gets the title of this view.
   *
   * @return  the title as a String
   */
  public String getContentType() {
    AbstractBlog blog = (AbstractBlog)getModel().get(Constants.BLOG_KEY);
    //#htmlview.java:72: method: String net.sourceforge.pebble.web.view.HtmlView.getContentType()
    //#htmlview.java:72: Warning: suspicious precondition
    //#    the precondition for this.__Tag is not a contiguous range of values
    //#    severity: SUPPRESSED
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: String getContentType()
    //#    suspicious precondition index: [2]
    //#input(String getContentType()): __Descendant_Table[net/sourceforge/pebble/web/view/HtmlView]
    //#input(String getContentType()): __Descendant_Table[net/sourceforge/pebble/web/view/impl/AboutAuthorView]
    //#input(String getContentType()): __Descendant_Table[net/sourceforge/pebble/web/view/impl/AboutView]
    //#input(String getContentType()): __Descendant_Table[net/sourceforge/pebble/web/view/impl/AdvancedSearchView]
    //#input(String getContentType()): __Descendant_Table[net/sourceforge/pebble/web/view/impl/BlogDetailsView]
    //#input(String getContentType()): __Descendant_Table[net/sourceforge/pebble/web/view/impl/SubscribeView]
    //#input(String getContentType()): __Descendant_Table[others]
    //#input(String getContentType()): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getContentType()): net/sourceforge/pebble/web/model/Model.__Descendant_Table[net/sourceforge/pebble/web/model/Model]
    //#input(String getContentType()): net/sourceforge/pebble/web/model/Model.__Descendant_Table[others]
    //#input(String getContentType()): net/sourceforge/pebble/web/model/Model.__Dispatch_Table.get(Ljava/lang/String;)Ljava/lang/Object;
    //#input(String getContentType()): net/sourceforge/pebble/web/view/impl/AboutAuthorView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getContentType()): net/sourceforge/pebble/web/view/impl/AboutView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getContentType()): net/sourceforge/pebble/web/view/impl/AdvancedSearchView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getContentType()): net/sourceforge/pebble/web/view/impl/BlogDetailsView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getContentType()): net/sourceforge/pebble/web/view/impl/SubscribeView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getContentType()): this
    //#input(String getContentType()): this.__Tag
    //#input(String getContentType()): this.model
    //#input(String getContentType()): this.model.__Tag
    //#input(String getContentType()): this.model.data
    //#output(String getContentType()): return_value
    //#pre[2] (String getContentType()): this.__Tag in {net/sourceforge/pebble/web/view/HtmlView, net/sourceforge/pebble/web/view/impl/AboutAuthorView, net/sourceforge/pebble/web/view/impl/AboutView, net/sourceforge/pebble/web/view/impl/AdvancedSearchView, net/sourceforge/pebble/web/view/impl/BlogDetailsView, net/sourceforge/pebble/web/view/impl/SubscribeView}
    //#pre[3] (String getContentType()): this.model != null
    //#pre[4] (String getContentType()): this.model.__Tag == net/sourceforge/pebble/web/model/Model
    //#pre[5] (String getContentType()): this.model.data != null
    //#presumption(String getContentType()): java.util.HashMap:get(...)@63 != null
    //#post(String getContentType()): return_value != null
    //#unanalyzed(String getContentType()): Effects-of-calling:java.util.HashMap:get
    return "text/html; charset=" + blog.getCharacterEncoding();
    //#htmlview.java:73: Warning: method not available
    //#    -- call on String net.sourceforge.pebble.domain.AbstractBlog:getCharacterEncoding()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: String getContentType()
    //#    unanalyzed callee: String net.sourceforge.pebble.domain.AbstractBlog:getCharacterEncoding()
    //#htmlview.java:73: end of method: String net.sourceforge.pebble.web.view.HtmlView.getContentType()
  }

  /**
   * Gets the title of this view.
   *
   * @return  the title as a String
   */
  public abstract String getTitle();

  public String getLocalizedString(String key) {
	  return I18n.getMessage(((AbstractBlog)getModel().get(Constants.BLOG_KEY)).getLocale(), key);
    //#htmlview.java:84: method: String net.sourceforge.pebble.web.view.HtmlView.getLocalizedString(String)
    //#htmlview.java:84: Warning: method not available
    //#    -- call on Locale net.sourceforge.pebble.domain.AbstractBlog:getLocale()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: String getLocalizedString(String)
    //#    unanalyzed callee: Locale net.sourceforge.pebble.domain.AbstractBlog:getLocale()
    //#htmlview.java:84: Warning: suspicious precondition
    //#    the precondition for this.__Tag is not a contiguous range of values
    //#    severity: SUPPRESSED
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: String getLocalizedString(String)
    //#    suspicious precondition index: [3]
    //#input(String getLocalizedString(String)): __Descendant_Table[net/sourceforge/pebble/web/view/HtmlView]
    //#input(String getLocalizedString(String)): __Descendant_Table[net/sourceforge/pebble/web/view/impl/AboutAuthorView]
    //#input(String getLocalizedString(String)): __Descendant_Table[net/sourceforge/pebble/web/view/impl/AboutView]
    //#input(String getLocalizedString(String)): __Descendant_Table[net/sourceforge/pebble/web/view/impl/AdvancedSearchView]
    //#input(String getLocalizedString(String)): __Descendant_Table[net/sourceforge/pebble/web/view/impl/BlogDetailsView]
    //#input(String getLocalizedString(String)): __Descendant_Table[net/sourceforge/pebble/web/view/impl/SubscribeView]
    //#input(String getLocalizedString(String)): __Descendant_Table[others]
    //#input(String getLocalizedString(String)): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getLocalizedString(String)): key
    //#input(String getLocalizedString(String)): net/sourceforge/pebble/web/model/Model.__Descendant_Table[net/sourceforge/pebble/web/model/Model]
    //#input(String getLocalizedString(String)): net/sourceforge/pebble/web/model/Model.__Descendant_Table[others]
    //#input(String getLocalizedString(String)): net/sourceforge/pebble/web/model/Model.__Dispatch_Table.get(Ljava/lang/String;)Ljava/lang/Object;
    //#input(String getLocalizedString(String)): net/sourceforge/pebble/web/view/impl/AboutAuthorView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getLocalizedString(String)): net/sourceforge/pebble/web/view/impl/AboutView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getLocalizedString(String)): net/sourceforge/pebble/web/view/impl/AdvancedSearchView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getLocalizedString(String)): net/sourceforge/pebble/web/view/impl/BlogDetailsView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getLocalizedString(String)): net/sourceforge/pebble/web/view/impl/SubscribeView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getLocalizedString(String)): this
    //#input(String getLocalizedString(String)): this.__Tag
    //#input(String getLocalizedString(String)): this.model
    //#input(String getLocalizedString(String)): this.model.__Tag
    //#input(String getLocalizedString(String)): this.model.data
    //#output(String getLocalizedString(String)): return_value
    //#pre[3] (String getLocalizedString(String)): this.__Tag in {net/sourceforge/pebble/web/view/HtmlView, net/sourceforge/pebble/web/view/impl/AboutAuthorView, net/sourceforge/pebble/web/view/impl/AboutView, net/sourceforge/pebble/web/view/impl/AdvancedSearchView, net/sourceforge/pebble/web/view/impl/BlogDetailsView, net/sourceforge/pebble/web/view/impl/SubscribeView}
    //#pre[4] (String getLocalizedString(String)): this.model != null
    //#pre[5] (String getLocalizedString(String)): this.model.__Tag == net/sourceforge/pebble/web/model/Model
    //#pre[6] (String getLocalizedString(String)): this.model.data != null
    //#presumption(String getLocalizedString(String)): java.util.HashMap:get(...)@63 != null
    //#post(String getLocalizedString(String)): init'ed(return_value)
    //#unanalyzed(String getLocalizedString(String)): Effects-of-calling:java.util.HashMap:get
    //#unanalyzed(String getLocalizedString(String)): Effects-of-calling:java.util.ResourceBundle:getBundle
    //#unanalyzed(String getLocalizedString(String)): Effects-of-calling:java.util.ResourceBundle:getString
    //#htmlview.java:84: end of method: String net.sourceforge.pebble.web.view.HtmlView.getLocalizedString(String)
  }
  
  
  /**
   * Gets the name of the theme to use.
   *
   * @return  the theme name as a String
   */
  protected String getTheme() {
    AbstractBlog blog = (AbstractBlog)getModel().get(Constants.BLOG_KEY);
    //#htmlview.java:94: method: String net.sourceforge.pebble.web.view.HtmlView.getTheme()
    //#htmlview.java:94: Warning: suspicious precondition
    //#    the precondition for this.__Tag is not a contiguous range of values
    //#    severity: SUPPRESSED
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: String getTheme()
    //#    suspicious precondition index: [3]
    //#input(String getTheme()): __Descendant_Table[net/sourceforge/pebble/web/view/HtmlView]
    //#input(String getTheme()): __Descendant_Table[net/sourceforge/pebble/web/view/impl/AboutAuthorView]
    //#input(String getTheme()): __Descendant_Table[net/sourceforge/pebble/web/view/impl/AboutView]
    //#input(String getTheme()): __Descendant_Table[net/sourceforge/pebble/web/view/impl/AdvancedSearchView]
    //#input(String getTheme()): __Descendant_Table[net/sourceforge/pebble/web/view/impl/BlogDetailsView]
    //#input(String getTheme()): __Descendant_Table[net/sourceforge/pebble/web/view/impl/SubscribeView]
    //#input(String getTheme()): __Descendant_Table[others]
    //#input(String getTheme()): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getTheme()): net.sourceforge.pebble.PebbleContext__static_init.new PebbleContext(PebbleContext__static_init#1).__Tag
    //#input(String getTheme()): net.sourceforge.pebble.PebbleContext__static_init.new PebbleContext(PebbleContext__static_init#1).configuration
    //#input(String getTheme()): net/sourceforge/pebble/PebbleContext.__Descendant_Table[net/sourceforge/pebble/PebbleContext]
    //#input(String getTheme()): net/sourceforge/pebble/PebbleContext.__Dispatch_Table.getConfiguration()Lnet/sourceforge/pebble/Configuration;
    //#input(String getTheme()): net/sourceforge/pebble/PebbleContext.instance
    //#input(String getTheme()): net/sourceforge/pebble/web/model/Model.__Descendant_Table[net/sourceforge/pebble/web/model/Model]
    //#input(String getTheme()): net/sourceforge/pebble/web/model/Model.__Descendant_Table[others]
    //#input(String getTheme()): net/sourceforge/pebble/web/model/Model.__Dispatch_Table.get(Ljava/lang/String;)Ljava/lang/Object;
    //#input(String getTheme()): net/sourceforge/pebble/web/view/impl/AboutAuthorView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getTheme()): net/sourceforge/pebble/web/view/impl/AboutView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getTheme()): net/sourceforge/pebble/web/view/impl/AdvancedSearchView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getTheme()): net/sourceforge/pebble/web/view/impl/BlogDetailsView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getTheme()): net/sourceforge/pebble/web/view/impl/SubscribeView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getTheme()): this
    //#input(String getTheme()): this.__Tag
    //#input(String getTheme()): this.model
    //#input(String getTheme()): this.model.__Tag
    //#input(String getTheme()): this.model.data
    //#output(String getTheme()): return_value
    //#pre[1] (String getTheme()): net.sourceforge.pebble.PebbleContext__static_init.new PebbleContext(PebbleContext__static_init#1).configuration != null
    //#pre[3] (String getTheme()): this.__Tag in {net/sourceforge/pebble/web/view/HtmlView, net/sourceforge/pebble/web/view/impl/AboutAuthorView, net/sourceforge/pebble/web/view/impl/AboutView, net/sourceforge/pebble/web/view/impl/AdvancedSearchView, net/sourceforge/pebble/web/view/impl/BlogDetailsView, net/sourceforge/pebble/web/view/impl/SubscribeView}
    //#pre[4] (String getTheme()): this.model != null
    //#pre[5] (String getTheme()): this.model.__Tag == net/sourceforge/pebble/web/model/Model
    //#pre[6] (String getTheme()): this.model.data != null
    //#presumption(String getTheme()): java.util.HashMap:get(...)@63 != null
    //#post(String getTheme()): init'ed(return_value)
    //#unanalyzed(String getTheme()): Effects-of-calling:java.util.HashMap:get
    //#test_vector(String getTheme()): java.lang.String:equals(...)@98: {1}, {0}
    //#test_vector(String getTheme()): net.sourceforge.pebble.Configuration:isUserThemesEnabled(...)@97: {1}, {0}
    //#test_vector(String getTheme()): net.sourceforge.pebble.domain.AbstractBlog:getTheme(...)@95: Addr_Set{null}, Inverse{null}
    String theme = blog.getTheme();
    //#htmlview.java:95: Warning: method not available
    //#    -- call on String net.sourceforge.pebble.domain.AbstractBlog:getTheme()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: String getTheme()
    //#    unanalyzed callee: String net.sourceforge.pebble.domain.AbstractBlog:getTheme()

    if (!PebbleContext.getInstance().getConfiguration().isUserThemesEnabled()) {
    //#htmlview.java:97: Warning: method not available
    //#    -- call on bool net.sourceforge.pebble.Configuration:isUserThemesEnabled()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: String getTheme()
    //#    unanalyzed callee: bool net.sourceforge.pebble.Configuration:isUserThemesEnabled()
      if (theme != null && !theme.equals(DEFAULT_THEME) && !theme.equals(SYSTEM_THEME)) {
        return DEFAULT_THEME;
      }
    }

    return theme;
    //#htmlview.java:103: end of method: String net.sourceforge.pebble.web.view.HtmlView.getTheme()
  }

  protected int getStatus() {
    return HttpServletResponse.SC_OK;
    //#htmlview.java:107: method: int net.sourceforge.pebble.web.view.HtmlView.getStatus()
    //#output(int getStatus()): return_value
    //#post(int getStatus()): return_value == 200
    //#htmlview.java:107: end of method: int net.sourceforge.pebble.web.view.HtmlView.getStatus()
  }

  /**
   * Dispatches this view.
   *
   * @param request  the HttpServletRequest instance
   * @param response the HttpServletResponse instance
   * @param context
   */
  public void dispatch(HttpServletRequest request, HttpServletResponse response, ServletContext context) throws ServletException {
    String theme = getTheme();
    //#htmlview.java:118: method: void net.sourceforge.pebble.web.view.HtmlView.dispatch(HttpServletRequest, HttpServletResponse, ServletContext)
    //#htmlview.java:118: Warning: suspicious precondition
    //#    the precondition for this.__Tag is not a contiguous range of values
    //#    severity: SUPPRESSED
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)
    //#    suspicious precondition index: [7]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): __Descendant_Table[net/sourceforge/pebble/web/view/HtmlView]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): __Descendant_Table[net/sourceforge/pebble/web/view/impl/AboutAuthorView]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): __Descendant_Table[net/sourceforge/pebble/web/view/impl/AboutView]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): __Descendant_Table[net/sourceforge/pebble/web/view/impl/AdvancedSearchView]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): __Descendant_Table[net/sourceforge/pebble/web/view/impl/BlogDetailsView]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): __Descendant_Table[net/sourceforge/pebble/web/view/impl/SubscribeView]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): __Descendant_Table[others]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): __Dispatch_Table.getStatus()I
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): __Dispatch_Table.getTheme()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): __Dispatch_Table.getTitle()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): __Dispatch_Table.getUri()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): context
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): log
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net.sourceforge.pebble.Constants.THEME
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net.sourceforge.pebble.PebbleContext__static_init.new PebbleContext(PebbleContext__static_init#1).__Tag
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net.sourceforge.pebble.PebbleContext__static_init.new PebbleContext(PebbleContext__static_init#1).configuration
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/PebbleContext.__Descendant_Table[net/sourceforge/pebble/PebbleContext]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/PebbleContext.__Dispatch_Table.getConfiguration()Lnet/sourceforge/pebble/Configuration;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/PebbleContext.instance
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/security/PebbleUserDetails.__Descendant_Table[net/sourceforge/pebble/security/PebbleUserDetails]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/security/PebbleUserDetails.__Descendant_Table[others]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/security/PebbleUserDetails.__Dispatch_Table.getName()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/model/Model.__Descendant_Table[net/sourceforge/pebble/web/model/Model]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/model/Model.__Descendant_Table[others]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/model/Model.__Dispatch_Table.contains(Ljava/lang/String;)Z
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/model/Model.__Dispatch_Table.get(Ljava/lang/String;)Ljava/lang/Object;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AboutAuthorView.__Descendant_Table[net/sourceforge/pebble/web/view/impl/AboutAuthorView]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AboutAuthorView.__Descendant_Table[others]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AboutAuthorView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AboutAuthorView.__Dispatch_Table.getStatus()I
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AboutAuthorView.__Dispatch_Table.getTheme()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AboutAuthorView.__Dispatch_Table.getTitle()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AboutAuthorView.__Dispatch_Table.getUri()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AboutView.__Descendant_Table[net/sourceforge/pebble/web/view/impl/AboutView]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AboutView.__Descendant_Table[others]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AboutView.__Dispatch_Table.getLocalizedString(Ljava/lang/String;)Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AboutView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AboutView.__Dispatch_Table.getStatus()I
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AboutView.__Dispatch_Table.getTheme()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AboutView.__Dispatch_Table.getTitle()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AboutView.__Dispatch_Table.getUri()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AdvancedSearchView.__Descendant_Table[net/sourceforge/pebble/web/view/impl/AdvancedSearchView]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AdvancedSearchView.__Descendant_Table[others]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AdvancedSearchView.__Dispatch_Table.getLocalizedString(Ljava/lang/String;)Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AdvancedSearchView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AdvancedSearchView.__Dispatch_Table.getStatus()I
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AdvancedSearchView.__Dispatch_Table.getTheme()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AdvancedSearchView.__Dispatch_Table.getTitle()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/AdvancedSearchView.__Dispatch_Table.getUri()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/BlogDetailsView.__Descendant_Table[net/sourceforge/pebble/web/view/impl/BlogDetailsView]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/BlogDetailsView.__Descendant_Table[others]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/BlogDetailsView.__Dispatch_Table.getLocalizedString(Ljava/lang/String;)Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/BlogDetailsView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/BlogDetailsView.__Dispatch_Table.getStatus()I
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/BlogDetailsView.__Dispatch_Table.getTheme()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/BlogDetailsView.__Dispatch_Table.getTitle()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/BlogDetailsView.__Dispatch_Table.getUri()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/SubscribeView.__Descendant_Table[net/sourceforge/pebble/web/view/impl/SubscribeView]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/SubscribeView.__Descendant_Table[others]
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/SubscribeView.__Dispatch_Table.getLocalizedString(Ljava/lang/String;)Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/SubscribeView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/SubscribeView.__Dispatch_Table.getStatus()I
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/SubscribeView.__Dispatch_Table.getTheme()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/SubscribeView.__Dispatch_Table.getTitle()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net/sourceforge/pebble/web/view/impl/SubscribeView.__Dispatch_Table.getUri()Ljava/lang/String;
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): request
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): response
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): this
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): this.__Tag
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): this.model
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): this.model.__Tag
    //#input(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): this.model.data
    //#pre[1] (void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): context != null
    //#pre[2] (void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): log != null
    //#pre[3] (void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): net.sourceforge.pebble.PebbleContext__static_init.new PebbleContext(PebbleContext__static_init#1).configuration != null
    //#pre[4] (void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): request != null
    //#pre[5] (void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): response != null
    //#pre[7] (void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): this.__Tag in {net/sourceforge/pebble/web/view/impl/AboutAuthorView, net/sourceforge/pebble/web/view/impl/AboutView, net/sourceforge/pebble/web/view/impl/AdvancedSearchView, net/sourceforge/pebble/web/view/impl/BlogDetailsView, net/sourceforge/pebble/web/view/impl/SubscribeView}
    //#pre[8] (void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): this.model != null
    //#pre[9] (void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): this.model.__Tag == net/sourceforge/pebble/web/model/Model
    //#pre[10] (void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): this.model.data != null
    //#presumption(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): java.util.HashMap:get(...)@63 != null
    //#presumption(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): javax.servlet.ServletContext:getRequestDispatcher(...)@131 != null
    //#presumption(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): init'ed(net.sourceforge.pebble.Constants.THEME)
    //#unanalyzed(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): Effects-of-calling:getModel
    //#unanalyzed(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): Effects-of-calling:java.util.HashMap:get
    //#unanalyzed(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): Effects-of-calling:net.sourceforge.pebble.domain.AbstractBlog:getTheme
    //#unanalyzed(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): Effects-of-calling:net.sourceforge.pebble.Configuration:isUserThemesEnabled
    //#unanalyzed(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): Effects-of-calling:java.lang.String:equals
    //#unanalyzed(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): Effects-of-calling:java.util.HashMap:containsKey
    //#unanalyzed(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): Effects-of-calling:net.sourceforge.pebble.domain.Blog:getThemeDirectory
    //#unanalyzed(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): Effects-of-calling:java.lang.String:valueOf
    //#unanalyzed(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): Effects-of-calling:net.sourceforge.pebble.domain.StaticPage:getTemplate
    //#unanalyzed(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): Effects-of-calling:java.lang.StringBuilder:toString
    //#unanalyzed(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): Effects-of-calling:java.io.File
    //#unanalyzed(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): Effects-of-calling:java.io.File:canRead
    //#unanalyzed(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): Effects-of-calling:getLocalizedString
    //#unanalyzed(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): Effects-of-calling:net.sourceforge.pebble.domain.AbstractBlog:getLocale
    //#unanalyzed(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): Effects-of-calling:java.util.ResourceBundle:getBundle
    //#unanalyzed(void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)): Effects-of-calling:java.util.ResourceBundle:getString
    request.setAttribute(Constants.THEME, theme);
    request.setAttribute(Constants.TITLE_KEY, getTitle());
    //#htmlview.java:120: Warning: method not available
    //#    -- call on String getTitle()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)
    //#    unanalyzed callee: String getTitle()
    log.debug("Content is " + getUri());
    //#htmlview.java:121: Warning: method not available
    //#    -- call on String getUri()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)
    //#    unanalyzed callee: String getUri()
    //#htmlview.java:121: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:debug(Object)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)
    //#    unanalyzed callee: void org.apache.commons.logging.Log:debug(Object)
    request.setAttribute("content", getUri());
    //#htmlview.java:122: Warning: method not available
    //#    -- call on String getUri()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)
    //#    unanalyzed callee: String getUri()
    String uri = "/themes/" + theme + "/" + getTemplate() + ".jsp";
    log.debug("Dispatching to " + uri);
    //#htmlview.java:124: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:debug(Object)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)
    //#    unanalyzed callee: void org.apache.commons.logging.Log:debug(Object)

    response.setHeader("Cache-Control","no-cache, no-store");
    response.setDateHeader("Expires", 0);
    response.setHeader("Pragma","no-cache");

    try {
      RequestDispatcher dispatcher = context.getRequestDispatcher(uri);
      dispatcher.forward(request, response);
    } catch (IOException ioe) {
      ioe.printStackTrace();
      throw new ServletException(ioe);
    } finally {
      AbstractBlog blog = (AbstractBlog)getModel().get(Constants.BLOG_KEY);
      blog.log(request, getStatus());
    //#htmlview.java:138: Warning: method not available
    //#    -- call on void net.sourceforge.pebble.domain.AbstractBlog:log(HttpServletRequest, int)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: void dispatch(HttpServletRequest, HttpServletResponse, ServletContext)
    //#    unanalyzed callee: void net.sourceforge.pebble.domain.AbstractBlog:log(HttpServletRequest, int)
    }
  }
    //#htmlview.java:140: end of method: void net.sourceforge.pebble.web.view.HtmlView.dispatch(HttpServletRequest, HttpServletResponse, ServletContext)

  private String getTemplate() {
    if (!(getModel().get(Constants.BLOG_KEY) instanceof Blog)) {
    //#htmlview.java:143: method: String net.sourceforge.pebble.web.view.HtmlView.getTemplate()
    //#htmlview.java:143: Warning: suspicious precondition
    //#    the precondition for this.__Tag is not a contiguous range of values
    //#    severity: SUPPRESSED
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: String getTemplate()
    //#    suspicious precondition index: [2]
    //#input(String getTemplate()): __Descendant_Table[net/sourceforge/pebble/web/view/HtmlView]
    //#input(String getTemplate()): __Descendant_Table[net/sourceforge/pebble/web/view/impl/AboutAuthorView]
    //#input(String getTemplate()): __Descendant_Table[net/sourceforge/pebble/web/view/impl/AboutView]
    //#input(String getTemplate()): __Descendant_Table[net/sourceforge/pebble/web/view/impl/AdvancedSearchView]
    //#input(String getTemplate()): __Descendant_Table[net/sourceforge/pebble/web/view/impl/BlogDetailsView]
    //#input(String getTemplate()): __Descendant_Table[net/sourceforge/pebble/web/view/impl/SubscribeView]
    //#input(String getTemplate()): __Descendant_Table[others]
    //#input(String getTemplate()): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getTemplate()): net/sourceforge/pebble/web/model/Model.__Descendant_Table[net/sourceforge/pebble/web/model/Model]
    //#input(String getTemplate()): net/sourceforge/pebble/web/model/Model.__Descendant_Table[others]
    //#input(String getTemplate()): net/sourceforge/pebble/web/model/Model.__Dispatch_Table.contains(Ljava/lang/String;)Z
    //#input(String getTemplate()): net/sourceforge/pebble/web/model/Model.__Dispatch_Table.get(Ljava/lang/String;)Ljava/lang/Object;
    //#input(String getTemplate()): net/sourceforge/pebble/web/view/impl/AboutAuthorView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getTemplate()): net/sourceforge/pebble/web/view/impl/AboutView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getTemplate()): net/sourceforge/pebble/web/view/impl/AdvancedSearchView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getTemplate()): net/sourceforge/pebble/web/view/impl/BlogDetailsView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getTemplate()): net/sourceforge/pebble/web/view/impl/SubscribeView.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(String getTemplate()): this
    //#input(String getTemplate()): this.__Tag
    //#input(String getTemplate()): this.model
    //#input(String getTemplate()): this.model.__Tag
    //#input(String getTemplate()): this.model.data
    //#output(String getTemplate()): return_value
    //#pre[2] (String getTemplate()): this.__Tag in {net/sourceforge/pebble/web/view/HtmlView, net/sourceforge/pebble/web/view/impl/AboutAuthorView, net/sourceforge/pebble/web/view/impl/AboutView, net/sourceforge/pebble/web/view/impl/AdvancedSearchView, net/sourceforge/pebble/web/view/impl/BlogDetailsView, net/sourceforge/pebble/web/view/impl/SubscribeView}
    //#pre[3] (String getTemplate()): this.model != null
    //#pre[4] (String getTemplate()): this.model.__Tag == net/sourceforge/pebble/web/model/Model
    //#pre[5] (String getTemplate()): this.model.data != null
    //#presumption(String getTemplate()): java.util.HashMap:get(...)@63 != null
    //#presumption(String getTemplate()): java.util.HashMap:get(...)@63 != null
    //#post(String getTemplate()): init'ed(return_value)
    //#unanalyzed(String getTemplate()): Effects-of-calling:java.util.HashMap:get
    //#unanalyzed(String getTemplate()): Effects-of-calling:java.util.HashMap:containsKey
    //#test_vector(String getTemplate()): java.io.File:canRead(...)@152: {0}, {1}
    //#test_vector(String getTemplate()): java.util.HashMap:containsKey(...)@82: {1}, {0}
      return "template";
    }
    if (!getModel().contains(Constants.STATIC_PAGE_KEY)) {
      return "template";
    }
    StaticPage staticPage = (StaticPage) getModel().get(Constants.STATIC_PAGE_KEY);
    Blog blog = (Blog) getModel().get(Constants.BLOG_KEY);
    String templateFile = blog.getThemeDirectory() + "/" + staticPage.getTemplate() + ".jsp";
    //#htmlview.java:151: Warning: method not available
    //#    -- call on String net.sourceforge.pebble.domain.Blog:getThemeDirectory()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: String getTemplate()
    //#    unanalyzed callee: String net.sourceforge.pebble.domain.Blog:getThemeDirectory()
    //#htmlview.java:151: Warning: method not available
    //#    -- call on String net.sourceforge.pebble.domain.StaticPage:getTemplate()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: String getTemplate()
    //#    unanalyzed callee: String net.sourceforge.pebble.domain.StaticPage:getTemplate()
    if (new File(templateFile).canRead()) {
      return staticPage.getTemplate();
    //#htmlview.java:153: Warning: method not available
    //#    -- call on String net.sourceforge.pebble.domain.StaticPage:getTemplate()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.HtmlView
    //#    method: String getTemplate()
    //#    unanalyzed callee: String net.sourceforge.pebble.domain.StaticPage:getTemplate()
    }
    return "template";
    //#htmlview.java:155: end of method: String net.sourceforge.pebble.web.view.HtmlView.getTemplate()
  }
}
    //#htmlview.java:: end of class: net.sourceforge.pebble.web.view.HtmlView
