//# 0 errors, 357 messages
//#
/*
    //#contentcache.java:1:1: class: net.sourceforge.pebble.ContentCache
 * 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;

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

import java.util.Date;
import java.util.Properties;
import java.io.InputStream;
import java.io.IOException;
import java.net.URL;

import net.sourceforge.pebble.util.RelativeDate;
import net.sourceforge.pebble.domain.*;
import net.sf.ehcache.Element;
import net.sf.ehcache.Cache;
import net.sf.ehcache.CacheManager;

/**
 * A wrapper for a cache used to store blog entries and static pages.
 *
 * @author    Simon Brown
 */
public class ContentCache {

  private static final ContentCache instance = new ContentCache();
    //#contentcache.java:56: method: net.sourceforge.pebble.ContentCache.net.sourceforge.pebble.ContentCache__static_init
    //#input(net.sourceforge.pebble.ContentCache__static_init): net/sourceforge/pebble/domain/BlogManager.__Descendant_Table[net/sourceforge/pebble/domain/BlogManager]
    //#input(net.sourceforge.pebble.ContentCache__static_init): net/sourceforge/pebble/domain/BlogManager.__Descendant_Table[others]
    //#input(net.sourceforge.pebble.ContentCache__static_init): net/sourceforge/pebble/domain/BlogManager.__Dispatch_Table.getNumberOfBlogs()I
    //#input(net.sourceforge.pebble.ContentCache__static_init): net/sourceforge/pebble/domain/BlogManager.instance
    //#input(net.sourceforge.pebble.ContentCache__static_init): net/sourceforge/pebble/domain/BlogManager.instance.__Tag
    //#input(net.sourceforge.pebble.ContentCache__static_init): net/sourceforge/pebble/domain/BlogManager.instance.blogs
    //#output(net.sourceforge.pebble.ContentCache__static_init): __Descendant_Table[net/sourceforge/pebble/ContentCache]
    //#output(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.getBlogEntry(Lnet/sourceforge/pebble/domain/Blog;Ljava/lang/String;)Lnet/sourceforge/pebble/domain/BlogEntry;
    //#output(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.getCompositeKeyForBlogEntry(Lnet/sourceforge/pebble/domain/Blog;Ljava/lang/String;)Ljava/lang/String;
    //#output(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.getCompositeKeyForBlogEntry(Lnet/sourceforge/pebble/domain/BlogEntry;)Ljava/lang/String;
    //#output(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.getCompositeKeyForStaticPage(Lnet/sourceforge/pebble/domain/Blog;Ljava/lang/String;)Ljava/lang/String;
    //#output(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.getCompositeKeyForStaticPage(Lnet/sourceforge/pebble/domain/StaticPage;)Ljava/lang/String;
    //#output(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.getStaticPage(Lnet/sourceforge/pebble/domain/Blog;Ljava/lang/String;)Lnet/sourceforge/pebble/domain/StaticPage;
    //#output(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.putBlogEntry(Lnet/sourceforge/pebble/domain/BlogEntry;)V
    //#output(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.putStaticPage(Lnet/sourceforge/pebble/domain/StaticPage;)V
    //#output(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.removeBlogEntry(Lnet/sourceforge/pebble/domain/BlogEntry;)V
    //#output(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.removeStaticPage(Lnet/sourceforge/pebble/domain/StaticPage;)V
    //#output(net.sourceforge.pebble.ContentCache__static_init): instance
    //#output(net.sourceforge.pebble.ContentCache__static_init): log
    //#output(net.sourceforge.pebble.ContentCache__static_init): new ContentCache(ContentCache__static_init#1) num objects
    //#output(net.sourceforge.pebble.ContentCache__static_init): instance.__Tag
    //#output(net.sourceforge.pebble.ContentCache__static_init): instance.cache
    //#new obj(net.sourceforge.pebble.ContentCache__static_init): new ContentCache(ContentCache__static_init#1)
    //#pre[1] (net.sourceforge.pebble.ContentCache__static_init): net/sourceforge/pebble/domain/BlogManager.instance != null
    //#pre[2] (net.sourceforge.pebble.ContentCache__static_init): net/sourceforge/pebble/domain/BlogManager.instance.__Tag == net/sourceforge/pebble/domain/BlogManager
    //#pre[3] (net.sourceforge.pebble.ContentCache__static_init): net/sourceforge/pebble/domain/BlogManager.instance.blogs != null
    //#presumption(net.sourceforge.pebble.ContentCache__static_init): net.sf.ehcache.CacheManager:getCache(...)@66 != null
    //#post(net.sourceforge.pebble.ContentCache__static_init): __Descendant_Table[net/sourceforge/pebble/ContentCache] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.getBlogEntry(Lnet/sourceforge/pebble/domain/Blog;Ljava/lang/String;)Lnet/sourceforge/pebble/domain/BlogEntry; == &getBlogEntry
    //#post(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.getCompositeKeyForBlogEntry(Lnet/sourceforge/pebble/domain/Blog;Ljava/lang/String;)Ljava/lang/String; == &getCompositeKeyForBlogEntry
    //#post(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.getCompositeKeyForBlogEntry(Lnet/sourceforge/pebble/domain/BlogEntry;)Ljava/lang/String; == &getCompositeKeyForBlogEntry
    //#post(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.getCompositeKeyForStaticPage(Lnet/sourceforge/pebble/domain/Blog;Ljava/lang/String;)Ljava/lang/String; == &getCompositeKeyForStaticPage
    //#post(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.getCompositeKeyForStaticPage(Lnet/sourceforge/pebble/domain/StaticPage;)Ljava/lang/String; == &getCompositeKeyForStaticPage
    //#post(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.getStaticPage(Lnet/sourceforge/pebble/domain/Blog;Ljava/lang/String;)Lnet/sourceforge/pebble/domain/StaticPage; == &getStaticPage
    //#post(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.putBlogEntry(Lnet/sourceforge/pebble/domain/BlogEntry;)V == &putBlogEntry
    //#post(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.putStaticPage(Lnet/sourceforge/pebble/domain/StaticPage;)V == &putStaticPage
    //#post(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.removeBlogEntry(Lnet/sourceforge/pebble/domain/BlogEntry;)V == &removeBlogEntry
    //#post(net.sourceforge.pebble.ContentCache__static_init): __Dispatch_Table.removeStaticPage(Lnet/sourceforge/pebble/domain/StaticPage;)V == &removeStaticPage
    //#post(net.sourceforge.pebble.ContentCache__static_init): instance == &new ContentCache(ContentCache__static_init#1)
    //#post(net.sourceforge.pebble.ContentCache__static_init): init'ed(log)
    //#post(net.sourceforge.pebble.ContentCache__static_init): new ContentCache(ContentCache__static_init#1) num objects == 1
    //#post(net.sourceforge.pebble.ContentCache__static_init): instance.__Tag == net/sourceforge/pebble/ContentCache
    //#post(net.sourceforge.pebble.ContentCache__static_init): instance.cache != null
    //#unanalyzed(net.sourceforge.pebble.ContentCache__static_init): Effects-of-calling:java.lang.Class:getResource
    //#unanalyzed(net.sourceforge.pebble.ContentCache__static_init): Effects-of-calling:net.sf.ehcache.CacheManager
    //#unanalyzed(net.sourceforge.pebble.ContentCache__static_init): Effects-of-calling:net.sf.ehcache.CacheManager:getCache
    //#unanalyzed(net.sourceforge.pebble.ContentCache__static_init): Effects-of-calling:net.sf.ehcache.Cache:getCacheConfiguration
    //#unanalyzed(net.sourceforge.pebble.ContentCache__static_init): Effects-of-calling:net.sf.ehcache.config.CacheConfiguration:getMaxElementsInMemory
    //#unanalyzed(net.sourceforge.pebble.ContentCache__static_init): Effects-of-calling:getInstance
    //#unanalyzed(net.sourceforge.pebble.ContentCache__static_init): Effects-of-calling:getNumberOfBlogs
    //#unanalyzed(net.sourceforge.pebble.ContentCache__static_init): Effects-of-calling:net.sf.ehcache.config.CacheConfiguration:setMaxElementsInMemory
    //#unanalyzed(net.sourceforge.pebble.ContentCache__static_init): Effects-of-calling:java.util.Map:size

  /** the log used by this class */
  private static Log log = LogFactory.getLog(ContentCache.class);
    //#contentcache.java:59: Warning: method not available
    //#    -- call on Log org.apache.commons.logging.LogFactory:getLog(Class)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.ContentCache
    //#    method: net.sourceforge.pebble.ContentCache__static_init
    //#    unanalyzed callee: Log org.apache.commons.logging.LogFactory:getLog(Class)
    //#contentcache.java:59: end of method: net.sourceforge.pebble.ContentCache.net.sourceforge.pebble.ContentCache__static_init

  private Cache cache;

  private ContentCache() {
    //#contentcache.java:63: method: void net.sourceforge.pebble.ContentCache.net.sourceforge.pebble.ContentCache()
    //#input(void net.sourceforge.pebble.ContentCache()): net/sourceforge/pebble/domain/BlogManager.__Descendant_Table[net/sourceforge/pebble/domain/BlogManager]
    //#input(void net.sourceforge.pebble.ContentCache()): net/sourceforge/pebble/domain/BlogManager.__Descendant_Table[others]
    //#input(void net.sourceforge.pebble.ContentCache()): net/sourceforge/pebble/domain/BlogManager.__Dispatch_Table.getNumberOfBlogs()I
    //#input(void net.sourceforge.pebble.ContentCache()): net/sourceforge/pebble/domain/BlogManager.instance
    //#input(void net.sourceforge.pebble.ContentCache()): net/sourceforge/pebble/domain/BlogManager.instance.__Tag
    //#input(void net.sourceforge.pebble.ContentCache()): net/sourceforge/pebble/domain/BlogManager.instance.blogs
    //#input(void net.sourceforge.pebble.ContentCache()): this
    //#output(void net.sourceforge.pebble.ContentCache()): this.cache
    //#pre[1] (void net.sourceforge.pebble.ContentCache()): net/sourceforge/pebble/domain/BlogManager.instance != null
    //#pre[2] (void net.sourceforge.pebble.ContentCache()): net/sourceforge/pebble/domain/BlogManager.instance.__Tag == net/sourceforge/pebble/domain/BlogManager
    //#pre[3] (void net.sourceforge.pebble.ContentCache()): net/sourceforge/pebble/domain/BlogManager.instance.blogs != null
    //#presumption(void net.sourceforge.pebble.ContentCache()): net.sf.ehcache.Cache:getCacheConfiguration(...)@72 != null
    //#presumption(void net.sourceforge.pebble.ContentCache()): net.sf.ehcache.Cache:getCacheConfiguration(...)@72 != null
    //#presumption(void net.sourceforge.pebble.ContentCache()): net.sf.ehcache.CacheManager:getCache(...)@66 != null
    //#presumption(void net.sourceforge.pebble.ContentCache()): net.sf.ehcache.config.CacheConfiguration:getMaxElementsInMemory(...)@72*getNumberOfBlogs(...)@72 in range
    //#presumption(void net.sourceforge.pebble.ContentCache()): net.sf.ehcache.config.CacheConfiguration:getMaxElementsInMemory(...)@72*java.util.Map:size(...)@237 in -2_147_483_648..4_294_967_295
    //#post(void net.sourceforge.pebble.ContentCache()): (soft) this.cache != null
    //#unanalyzed(void net.sourceforge.pebble.ContentCache()): Effects-of-calling:java.util.Map:size
    URL url = BlogService.class.getResource("/ehcache.xml");
    CacheManager cacheManager = new CacheManager(url);
    //#contentcache.java:65: Warning: method not available
    //#    -- call on void net.sf.ehcache.CacheManager(URL)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.ContentCache
    //#    method: void net.sourceforge.pebble.ContentCache()
    //#    unanalyzed callee: void net.sf.ehcache.CacheManager(URL)
    cache = cacheManager.getCache("contentCache");
    //#contentcache.java:66: Warning: method not available
    //#    -- call on Cache net.sf.ehcache.CacheManager:getCache(String)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.ContentCache
    //#    method: void net.sourceforge.pebble.ContentCache()
    //#    unanalyzed callee: Cache net.sf.ehcache.CacheManager:getCache(String)

    // size the cache (number of blogs * max elements in memory configured in the ehcache.xml file)
    // Fix: Previously the number of blogs was calculated through blogManager.getBlogs().getSize() which
    // caused the blog to load and access the Cache that is just now being initialized.
    // This lead to NPE because instance is not yet set to this instance.
    cache.getCacheConfiguration().setMaxElementsInMemory(cache.getCacheConfiguration().getMaxElementsInMemory() * BlogManager.getInstance().getNumberOfBlogs());
    //#contentcache.java:72: Warning: method not available
    //#    -- call on CacheConfiguration net.sf.ehcache.Cache:getCacheConfiguration()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.ContentCache
    //#    method: void net.sourceforge.pebble.ContentCache()
    //#    unanalyzed callee: CacheConfiguration net.sf.ehcache.Cache:getCacheConfiguration()
    //#contentcache.java:72: Warning: method not available
    //#    -- call on int net.sf.ehcache.config.CacheConfiguration:getMaxElementsInMemory()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.ContentCache
    //#    method: void net.sourceforge.pebble.ContentCache()
    //#    unanalyzed callee: int net.sf.ehcache.config.CacheConfiguration:getMaxElementsInMemory()
    //#contentcache.java:72: Warning: method not available
    //#    -- call on void net.sf.ehcache.config.CacheConfiguration:setMaxElementsInMemory(int)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.ContentCache
    //#    method: void net.sourceforge.pebble.ContentCache()
    //#    unanalyzed callee: void net.sf.ehcache.config.CacheConfiguration:setMaxElementsInMemory(int)
  }
    //#contentcache.java:73: end of method: void net.sourceforge.pebble.ContentCache.net.sourceforge.pebble.ContentCache()

  public static ContentCache getInstance() {
    return instance;
    //#contentcache.java:76: method: ContentCache net.sourceforge.pebble.ContentCache.getInstance()
    //#input(ContentCache getInstance()): instance
    //#output(ContentCache getInstance()): return_value
    //#post(ContentCache getInstance()): return_value == &new ContentCache(ContentCache__static_init#1)
    //#contentcache.java:76: end of method: ContentCache net.sourceforge.pebble.ContentCache.getInstance()
  }

  public synchronized void putBlogEntry(BlogEntry blogEntry) {
    Element element = new Element(getCompositeKeyForBlogEntry(blogEntry), blogEntry);
    //#contentcache.java:80: method: void net.sourceforge.pebble.ContentCache.putBlogEntry(BlogEntry)
    //#contentcache.java:80: Warning: method not available
    //#    -- call on void net.sf.ehcache.Element(Serializable, Serializable)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.ContentCache
    //#    method: void putBlogEntry(BlogEntry)
    //#    unanalyzed callee: void net.sf.ehcache.Element(Serializable, Serializable)
    //#input(void putBlogEntry(BlogEntry)): blogEntry
    //#input(void putBlogEntry(BlogEntry)): blogEntry.__Tag
    //#input(void putBlogEntry(BlogEntry)): blogEntry.blog
    //#input(void putBlogEntry(BlogEntry)): blogEntry.blog.__Tag
    //#input(void putBlogEntry(BlogEntry)): blogEntry.blog.id
    //#input(void putBlogEntry(BlogEntry)): blogEntry.id
    //#input(void putBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[net/sourceforge/pebble/domain/Blog]
    //#input(void putBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[others]
    //#input(void putBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/Blog.__Dispatch_Table.getId()Ljava/lang/String;
    //#input(void putBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/BlogEntry.__Descendant_Table[net/sourceforge/pebble/domain/BlogEntry]
    //#input(void putBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/BlogEntry.__Descendant_Table[others]
    //#input(void putBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.getBlog()Lnet/sourceforge/pebble/domain/Blog;
    //#input(void putBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.getId()Ljava/lang/String;
    //#input(void putBlogEntry(BlogEntry)): this
    //#input(void putBlogEntry(BlogEntry)): this.cache
    //#pre[1] (void putBlogEntry(BlogEntry)): blogEntry != null
    //#pre[2] (void putBlogEntry(BlogEntry)): blogEntry.__Tag == net/sourceforge/pebble/domain/BlogEntry
    //#pre[3] (void putBlogEntry(BlogEntry)): blogEntry.blog != null
    //#pre[4] (void putBlogEntry(BlogEntry)): blogEntry.blog.__Tag == net/sourceforge/pebble/domain/Blog
    //#pre[5] (void putBlogEntry(BlogEntry)): init'ed(blogEntry.blog.id)
    //#pre[6] (void putBlogEntry(BlogEntry)): init'ed(blogEntry.id)
    //#pre[8] (void putBlogEntry(BlogEntry)): this.cache != null
    //#unanalyzed(void putBlogEntry(BlogEntry)): Effects-of-calling:getBlog
    //#unanalyzed(void putBlogEntry(BlogEntry)): Effects-of-calling:getId
    //#unanalyzed(void putBlogEntry(BlogEntry)): Effects-of-calling:java.lang.String:valueOf
    //#unanalyzed(void putBlogEntry(BlogEntry)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(void putBlogEntry(BlogEntry)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(void putBlogEntry(BlogEntry)): Effects-of-calling:java.lang.StringBuilder:toString
    cache.put(element);
    //#contentcache.java:81: Warning: method not available
    //#    -- call on void net.sf.ehcache.Cache:put(Element)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.ContentCache
    //#    method: void putBlogEntry(BlogEntry)
    //#    unanalyzed callee: void net.sf.ehcache.Cache:put(Element)
  }
    //#contentcache.java:82: end of method: void net.sourceforge.pebble.ContentCache.putBlogEntry(BlogEntry)

  public synchronized BlogEntry getBlogEntry(Blog blog, String blogEntryId) {
    BlogEntry blogEntry = null;
    //#contentcache.java:85: method: BlogEntry net.sourceforge.pebble.ContentCache.getBlogEntry(Blog, String)
    //#input(BlogEntry getBlogEntry(Blog, String)): blog
    //#input(BlogEntry getBlogEntry(Blog, String)): blog.__Tag
    //#input(BlogEntry getBlogEntry(Blog, String)): blog.id
    //#input(BlogEntry getBlogEntry(Blog, String)): blogEntryId
    //#input(BlogEntry getBlogEntry(Blog, String)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[net/sourceforge/pebble/domain/Blog]
    //#input(BlogEntry getBlogEntry(Blog, String)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[others]
    //#input(BlogEntry getBlogEntry(Blog, String)): net/sourceforge/pebble/domain/Blog.__Dispatch_Table.getId()Ljava/lang/String;
    //#input(BlogEntry getBlogEntry(Blog, String)): net/sourceforge/pebble/domain/BlogEntry.__Descendant_Table[net/sourceforge/pebble/domain/BlogEntry]
    //#input(BlogEntry getBlogEntry(Blog, String)): net/sourceforge/pebble/domain/BlogEntry.__Descendant_Table[others]
    //#input(BlogEntry getBlogEntry(Blog, String)): this
    //#input(BlogEntry getBlogEntry(Blog, String)): this.cache
    //#output(BlogEntry getBlogEntry(Blog, String)): return_value
    //#pre[1] (BlogEntry getBlogEntry(Blog, String)): blog != null
    //#pre[2] (BlogEntry getBlogEntry(Blog, String)): blog.__Tag == net/sourceforge/pebble/domain/Blog
    //#pre[3] (BlogEntry getBlogEntry(Blog, String)): init'ed(blog.id)
    //#pre[6] (BlogEntry getBlogEntry(Blog, String)): this.cache != null
    //#presumption(BlogEntry getBlogEntry(Blog, String)): net.sf.ehcache.Element:getValue(...).__Tag@88 == net/sourceforge/pebble/domain/BlogEntry
    //#post(BlogEntry getBlogEntry(Blog, String)): init'ed(return_value)
    //#unanalyzed(BlogEntry getBlogEntry(Blog, String)): Effects-of-calling:getId
    //#unanalyzed(BlogEntry getBlogEntry(Blog, String)): Effects-of-calling:java.lang.String:valueOf
    //#unanalyzed(BlogEntry getBlogEntry(Blog, String)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(BlogEntry getBlogEntry(Blog, String)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(BlogEntry getBlogEntry(Blog, String)): Effects-of-calling:java.lang.StringBuilder:toString
    //#test_vector(BlogEntry getBlogEntry(Blog, String)): net.sf.ehcache.Cache:get(...)@86: Addr_Set{null}, Inverse{null}
    Element element = cache.get(getCompositeKeyForBlogEntry(blog, blogEntryId));
    //#contentcache.java:86: Warning: method not available
    //#    -- call on Element net.sf.ehcache.Cache:get(Serializable)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.ContentCache
    //#    method: BlogEntry getBlogEntry(Blog, String)
    //#    unanalyzed callee: Element net.sf.ehcache.Cache:get(Serializable)
    if (element != null) {
      blogEntry = (BlogEntry)element.getValue(); 
    //#contentcache.java:88: Warning: method not available
    //#    -- call on Serializable net.sf.ehcache.Element:getValue()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.ContentCache
    //#    method: BlogEntry getBlogEntry(Blog, String)
    //#    unanalyzed callee: Serializable net.sf.ehcache.Element:getValue()
    }

    return blogEntry;
    //#contentcache.java:91: end of method: BlogEntry net.sourceforge.pebble.ContentCache.getBlogEntry(Blog, String)
  }

  public synchronized void removeBlogEntry(BlogEntry blogEntry) {
    cache.remove(getCompositeKeyForBlogEntry(blogEntry));
    //#contentcache.java:95: method: void net.sourceforge.pebble.ContentCache.removeBlogEntry(BlogEntry)
    //#contentcache.java:95: Warning: method not available
    //#    -- call on bool net.sf.ehcache.Cache:remove(Serializable)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.ContentCache
    //#    method: void removeBlogEntry(BlogEntry)
    //#    unanalyzed callee: bool net.sf.ehcache.Cache:remove(Serializable)
    //#input(void removeBlogEntry(BlogEntry)): blogEntry
    //#input(void removeBlogEntry(BlogEntry)): blogEntry.__Tag
    //#input(void removeBlogEntry(BlogEntry)): blogEntry.blog
    //#input(void removeBlogEntry(BlogEntry)): blogEntry.blog.__Tag
    //#input(void removeBlogEntry(BlogEntry)): blogEntry.blog.id
    //#input(void removeBlogEntry(BlogEntry)): blogEntry.id
    //#input(void removeBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[net/sourceforge/pebble/domain/Blog]
    //#input(void removeBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[others]
    //#input(void removeBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/Blog.__Dispatch_Table.getId()Ljava/lang/String;
    //#input(void removeBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/BlogEntry.__Descendant_Table[net/sourceforge/pebble/domain/BlogEntry]
    //#input(void removeBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/BlogEntry.__Descendant_Table[others]
    //#input(void removeBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.getBlog()Lnet/sourceforge/pebble/domain/Blog;
    //#input(void removeBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.getId()Ljava/lang/String;
    //#input(void removeBlogEntry(BlogEntry)): this
    //#input(void removeBlogEntry(BlogEntry)): this.cache
    //#pre[1] (void removeBlogEntry(BlogEntry)): blogEntry != null
    //#pre[2] (void removeBlogEntry(BlogEntry)): blogEntry.__Tag == net/sourceforge/pebble/domain/BlogEntry
    //#pre[3] (void removeBlogEntry(BlogEntry)): blogEntry.blog != null
    //#pre[4] (void removeBlogEntry(BlogEntry)): blogEntry.blog.__Tag == net/sourceforge/pebble/domain/Blog
    //#pre[5] (void removeBlogEntry(BlogEntry)): init'ed(blogEntry.blog.id)
    //#pre[6] (void removeBlogEntry(BlogEntry)): init'ed(blogEntry.id)
    //#pre[8] (void removeBlogEntry(BlogEntry)): this.cache != null
    //#unanalyzed(void removeBlogEntry(BlogEntry)): Effects-of-calling:getBlog
    //#unanalyzed(void removeBlogEntry(BlogEntry)): Effects-of-calling:getId
    //#unanalyzed(void removeBlogEntry(BlogEntry)): Effects-of-calling:java.lang.String:valueOf
    //#unanalyzed(void removeBlogEntry(BlogEntry)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(void removeBlogEntry(BlogEntry)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(void removeBlogEntry(BlogEntry)): Effects-of-calling:java.lang.StringBuilder:toString
  }
    //#contentcache.java:96: end of method: void net.sourceforge.pebble.ContentCache.removeBlogEntry(BlogEntry)

  private String getCompositeKeyForBlogEntry(BlogEntry blogEntry) {
    return getCompositeKeyForBlogEntry(blogEntry.getBlog(), blogEntry.getId());
    //#contentcache.java:99: method: String net.sourceforge.pebble.ContentCache.getCompositeKeyForBlogEntry(BlogEntry)
    //#input(String getCompositeKeyForBlogEntry(BlogEntry)): blogEntry
    //#input(String getCompositeKeyForBlogEntry(BlogEntry)): blogEntry.__Tag
    //#input(String getCompositeKeyForBlogEntry(BlogEntry)): blogEntry.blog
    //#input(String getCompositeKeyForBlogEntry(BlogEntry)): blogEntry.blog.__Tag
    //#input(String getCompositeKeyForBlogEntry(BlogEntry)): blogEntry.blog.id
    //#input(String getCompositeKeyForBlogEntry(BlogEntry)): blogEntry.id
    //#input(String getCompositeKeyForBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[net/sourceforge/pebble/domain/Blog]
    //#input(String getCompositeKeyForBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[others]
    //#input(String getCompositeKeyForBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/Blog.__Dispatch_Table.getId()Ljava/lang/String;
    //#input(String getCompositeKeyForBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/BlogEntry.__Descendant_Table[net/sourceforge/pebble/domain/BlogEntry]
    //#input(String getCompositeKeyForBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/BlogEntry.__Descendant_Table[others]
    //#input(String getCompositeKeyForBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.getBlog()Lnet/sourceforge/pebble/domain/Blog;
    //#input(String getCompositeKeyForBlogEntry(BlogEntry)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.getId()Ljava/lang/String;
    //#input(String getCompositeKeyForBlogEntry(BlogEntry)): this
    //#output(String getCompositeKeyForBlogEntry(BlogEntry)): return_value
    //#pre[1] (String getCompositeKeyForBlogEntry(BlogEntry)): blogEntry != null
    //#pre[2] (String getCompositeKeyForBlogEntry(BlogEntry)): blogEntry.__Tag == net/sourceforge/pebble/domain/BlogEntry
    //#pre[3] (String getCompositeKeyForBlogEntry(BlogEntry)): blogEntry.blog != null
    //#pre[4] (String getCompositeKeyForBlogEntry(BlogEntry)): blogEntry.blog.__Tag == net/sourceforge/pebble/domain/Blog
    //#pre[5] (String getCompositeKeyForBlogEntry(BlogEntry)): init'ed(blogEntry.blog.id)
    //#pre[6] (String getCompositeKeyForBlogEntry(BlogEntry)): init'ed(blogEntry.id)
    //#post(String getCompositeKeyForBlogEntry(BlogEntry)): return_value != null
    //#unanalyzed(String getCompositeKeyForBlogEntry(BlogEntry)): Effects-of-calling:getId
    //#unanalyzed(String getCompositeKeyForBlogEntry(BlogEntry)): Effects-of-calling:java.lang.String:valueOf
    //#unanalyzed(String getCompositeKeyForBlogEntry(BlogEntry)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(String getCompositeKeyForBlogEntry(BlogEntry)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(String getCompositeKeyForBlogEntry(BlogEntry)): Effects-of-calling:java.lang.StringBuilder:toString
    //#contentcache.java:99: end of method: String net.sourceforge.pebble.ContentCache.getCompositeKeyForBlogEntry(BlogEntry)
  }

  private String getCompositeKeyForBlogEntry(Blog blog, String blogEntryId) {
    return blog.getId() + "/blogEntry/" + blogEntryId;
    //#contentcache.java:103: method: String net.sourceforge.pebble.ContentCache.getCompositeKeyForBlogEntry(Blog, String)
    //#input(String getCompositeKeyForBlogEntry(Blog, String)): blog
    //#input(String getCompositeKeyForBlogEntry(Blog, String)): blog.__Tag
    //#input(String getCompositeKeyForBlogEntry(Blog, String)): blog.id
    //#input(String getCompositeKeyForBlogEntry(Blog, String)): blogEntryId
    //#input(String getCompositeKeyForBlogEntry(Blog, String)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[net/sourceforge/pebble/domain/Blog]
    //#input(String getCompositeKeyForBlogEntry(Blog, String)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[others]
    //#input(String getCompositeKeyForBlogEntry(Blog, String)): net/sourceforge/pebble/domain/Blog.__Dispatch_Table.getId()Ljava/lang/String;
    //#output(String getCompositeKeyForBlogEntry(Blog, String)): return_value
    //#pre[1] (String getCompositeKeyForBlogEntry(Blog, String)): blog != null
    //#pre[2] (String getCompositeKeyForBlogEntry(Blog, String)): blog.__Tag == net/sourceforge/pebble/domain/Blog
    //#pre[3] (String getCompositeKeyForBlogEntry(Blog, String)): init'ed(blog.id)
    //#post(String getCompositeKeyForBlogEntry(Blog, String)): return_value != null
    //#contentcache.java:103: end of method: String net.sourceforge.pebble.ContentCache.getCompositeKeyForBlogEntry(Blog, String)
  }

  public synchronized void putStaticPage(StaticPage staticPage) {
    Element element = new Element(getCompositeKeyForStaticPage(staticPage), staticPage);
    //#contentcache.java:107: method: void net.sourceforge.pebble.ContentCache.putStaticPage(StaticPage)
    //#contentcache.java:107: Warning: method not available
    //#    -- call on void net.sf.ehcache.Element(Serializable, Serializable)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.ContentCache
    //#    method: void putStaticPage(StaticPage)
    //#    unanalyzed callee: void net.sf.ehcache.Element(Serializable, Serializable)
    //#input(void putStaticPage(StaticPage)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[net/sourceforge/pebble/domain/Blog]
    //#input(void putStaticPage(StaticPage)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[others]
    //#input(void putStaticPage(StaticPage)): net/sourceforge/pebble/domain/Blog.__Dispatch_Table.getId()Ljava/lang/String;
    //#input(void putStaticPage(StaticPage)): net/sourceforge/pebble/domain/StaticPage.__Descendant_Table[net/sourceforge/pebble/domain/StaticPage]
    //#input(void putStaticPage(StaticPage)): net/sourceforge/pebble/domain/StaticPage.__Descendant_Table[others]
    //#input(void putStaticPage(StaticPage)): net/sourceforge/pebble/domain/StaticPage.__Dispatch_Table.getBlog()Lnet/sourceforge/pebble/domain/Blog;
    //#input(void putStaticPage(StaticPage)): net/sourceforge/pebble/domain/StaticPage.__Dispatch_Table.getId()Ljava/lang/String;
    //#input(void putStaticPage(StaticPage)): staticPage
    //#input(void putStaticPage(StaticPage)): staticPage.__Tag
    //#input(void putStaticPage(StaticPage)): staticPage.blog
    //#input(void putStaticPage(StaticPage)): staticPage.blog.__Tag
    //#input(void putStaticPage(StaticPage)): staticPage.blog.id
    //#input(void putStaticPage(StaticPage)): staticPage.id
    //#input(void putStaticPage(StaticPage)): this
    //#input(void putStaticPage(StaticPage)): this.cache
    //#pre[1] (void putStaticPage(StaticPage)): staticPage != null
    //#pre[2] (void putStaticPage(StaticPage)): staticPage.__Tag == net/sourceforge/pebble/domain/StaticPage
    //#pre[3] (void putStaticPage(StaticPage)): staticPage.blog != null
    //#pre[4] (void putStaticPage(StaticPage)): staticPage.blog.__Tag == net/sourceforge/pebble/domain/Blog
    //#pre[5] (void putStaticPage(StaticPage)): init'ed(staticPage.blog.id)
    //#pre[6] (void putStaticPage(StaticPage)): init'ed(staticPage.id)
    //#pre[8] (void putStaticPage(StaticPage)): this.cache != null
    //#unanalyzed(void putStaticPage(StaticPage)): Effects-of-calling:getCompositeKeyForStaticPage
    //#unanalyzed(void putStaticPage(StaticPage)): Effects-of-calling:getBlog
    //#unanalyzed(void putStaticPage(StaticPage)): Effects-of-calling:getId
    //#unanalyzed(void putStaticPage(StaticPage)): Effects-of-calling:java.lang.String:valueOf
    //#unanalyzed(void putStaticPage(StaticPage)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(void putStaticPage(StaticPage)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(void putStaticPage(StaticPage)): Effects-of-calling:java.lang.StringBuilder:toString
    cache.put(element);
    //#contentcache.java:108: Warning: method not available
    //#    -- call on void net.sf.ehcache.Cache:put(Element)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.ContentCache
    //#    method: void putStaticPage(StaticPage)
    //#    unanalyzed callee: void net.sf.ehcache.Cache:put(Element)
  }
    //#contentcache.java:109: end of method: void net.sourceforge.pebble.ContentCache.putStaticPage(StaticPage)

  public synchronized StaticPage getStaticPage(Blog blog, String staticPageId) {
    StaticPage staticPage = null;
    //#contentcache.java:112: method: StaticPage net.sourceforge.pebble.ContentCache.getStaticPage(Blog, String)
    //#input(StaticPage getStaticPage(Blog, String)): blog
    //#input(StaticPage getStaticPage(Blog, String)): blog.__Tag
    //#input(StaticPage getStaticPage(Blog, String)): blog.id
    //#input(StaticPage getStaticPage(Blog, String)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[net/sourceforge/pebble/domain/Blog]
    //#input(StaticPage getStaticPage(Blog, String)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[others]
    //#input(StaticPage getStaticPage(Blog, String)): net/sourceforge/pebble/domain/Blog.__Dispatch_Table.getId()Ljava/lang/String;
    //#input(StaticPage getStaticPage(Blog, String)): net/sourceforge/pebble/domain/StaticPage.__Descendant_Table[net/sourceforge/pebble/domain/StaticPage]
    //#input(StaticPage getStaticPage(Blog, String)): net/sourceforge/pebble/domain/StaticPage.__Descendant_Table[others]
    //#input(StaticPage getStaticPage(Blog, String)): staticPageId
    //#input(StaticPage getStaticPage(Blog, String)): this
    //#input(StaticPage getStaticPage(Blog, String)): this.cache
    //#output(StaticPage getStaticPage(Blog, String)): return_value
    //#pre[1] (StaticPage getStaticPage(Blog, String)): blog != null
    //#pre[2] (StaticPage getStaticPage(Blog, String)): blog.__Tag == net/sourceforge/pebble/domain/Blog
    //#pre[3] (StaticPage getStaticPage(Blog, String)): init'ed(blog.id)
    //#pre[6] (StaticPage getStaticPage(Blog, String)): this.cache != null
    //#presumption(StaticPage getStaticPage(Blog, String)): net.sf.ehcache.Element:getValue(...).__Tag@115 == net/sourceforge/pebble/domain/StaticPage
    //#post(StaticPage getStaticPage(Blog, String)): init'ed(return_value)
    //#unanalyzed(StaticPage getStaticPage(Blog, String)): Effects-of-calling:getId
    //#unanalyzed(StaticPage getStaticPage(Blog, String)): Effects-of-calling:java.lang.String:valueOf
    //#unanalyzed(StaticPage getStaticPage(Blog, String)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(StaticPage getStaticPage(Blog, String)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(StaticPage getStaticPage(Blog, String)): Effects-of-calling:java.lang.StringBuilder:toString
    //#test_vector(StaticPage getStaticPage(Blog, String)): net.sf.ehcache.Cache:get(...)@113: Addr_Set{null}, Inverse{null}
    Element element = cache.get(getCompositeKeyForStaticPage(blog, staticPageId));
    //#contentcache.java:113: Warning: method not available
    //#    -- call on Element net.sf.ehcache.Cache:get(Serializable)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.ContentCache
    //#    method: StaticPage getStaticPage(Blog, String)
    //#    unanalyzed callee: Element net.sf.ehcache.Cache:get(Serializable)
    if (element != null) {
      staticPage = (StaticPage)element.getValue();
    //#contentcache.java:115: Warning: method not available
    //#    -- call on Serializable net.sf.ehcache.Element:getValue()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.ContentCache
    //#    method: StaticPage getStaticPage(Blog, String)
    //#    unanalyzed callee: Serializable net.sf.ehcache.Element:getValue()
    }

    return staticPage;
    //#contentcache.java:118: end of method: StaticPage net.sourceforge.pebble.ContentCache.getStaticPage(Blog, String)
  }

  public synchronized void removeStaticPage(StaticPage staticPage) {
    cache.remove(getCompositeKeyForStaticPage(staticPage));
    //#contentcache.java:122: method: void net.sourceforge.pebble.ContentCache.removeStaticPage(StaticPage)
    //#contentcache.java:122: Warning: method not available
    //#    -- call on bool net.sf.ehcache.Cache:remove(Serializable)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.ContentCache
    //#    method: void removeStaticPage(StaticPage)
    //#    unanalyzed callee: bool net.sf.ehcache.Cache:remove(Serializable)
    //#input(void removeStaticPage(StaticPage)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[net/sourceforge/pebble/domain/Blog]
    //#input(void removeStaticPage(StaticPage)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[others]
    //#input(void removeStaticPage(StaticPage)): net/sourceforge/pebble/domain/Blog.__Dispatch_Table.getId()Ljava/lang/String;
    //#input(void removeStaticPage(StaticPage)): net/sourceforge/pebble/domain/StaticPage.__Descendant_Table[net/sourceforge/pebble/domain/StaticPage]
    //#input(void removeStaticPage(StaticPage)): net/sourceforge/pebble/domain/StaticPage.__Descendant_Table[others]
    //#input(void removeStaticPage(StaticPage)): net/sourceforge/pebble/domain/StaticPage.__Dispatch_Table.getBlog()Lnet/sourceforge/pebble/domain/Blog;
    //#input(void removeStaticPage(StaticPage)): net/sourceforge/pebble/domain/StaticPage.__Dispatch_Table.getId()Ljava/lang/String;
    //#input(void removeStaticPage(StaticPage)): staticPage
    //#input(void removeStaticPage(StaticPage)): staticPage.__Tag
    //#input(void removeStaticPage(StaticPage)): staticPage.blog
    //#input(void removeStaticPage(StaticPage)): staticPage.blog.__Tag
    //#input(void removeStaticPage(StaticPage)): staticPage.blog.id
    //#input(void removeStaticPage(StaticPage)): staticPage.id
    //#input(void removeStaticPage(StaticPage)): this
    //#input(void removeStaticPage(StaticPage)): this.cache
    //#pre[1] (void removeStaticPage(StaticPage)): staticPage != null
    //#pre[2] (void removeStaticPage(StaticPage)): staticPage.__Tag == net/sourceforge/pebble/domain/StaticPage
    //#pre[3] (void removeStaticPage(StaticPage)): staticPage.blog != null
    //#pre[4] (void removeStaticPage(StaticPage)): staticPage.blog.__Tag == net/sourceforge/pebble/domain/Blog
    //#pre[5] (void removeStaticPage(StaticPage)): init'ed(staticPage.blog.id)
    //#pre[6] (void removeStaticPage(StaticPage)): init'ed(staticPage.id)
    //#pre[8] (void removeStaticPage(StaticPage)): this.cache != null
    //#unanalyzed(void removeStaticPage(StaticPage)): Effects-of-calling:getCompositeKeyForStaticPage
    //#unanalyzed(void removeStaticPage(StaticPage)): Effects-of-calling:getBlog
    //#unanalyzed(void removeStaticPage(StaticPage)): Effects-of-calling:getId
    //#unanalyzed(void removeStaticPage(StaticPage)): Effects-of-calling:java.lang.String:valueOf
    //#unanalyzed(void removeStaticPage(StaticPage)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(void removeStaticPage(StaticPage)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(void removeStaticPage(StaticPage)): Effects-of-calling:java.lang.StringBuilder:toString
  }
    //#contentcache.java:123: end of method: void net.sourceforge.pebble.ContentCache.removeStaticPage(StaticPage)

  private String getCompositeKeyForStaticPage(StaticPage staticPage) {
    return getCompositeKeyForStaticPage(staticPage.getBlog(), staticPage.getId());
    //#contentcache.java:126: method: String net.sourceforge.pebble.ContentCache.getCompositeKeyForStaticPage(StaticPage)
    //#input(String getCompositeKeyForStaticPage(StaticPage)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[net/sourceforge/pebble/domain/Blog]
    //#input(String getCompositeKeyForStaticPage(StaticPage)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[others]
    //#input(String getCompositeKeyForStaticPage(StaticPage)): net/sourceforge/pebble/domain/Blog.__Dispatch_Table.getId()Ljava/lang/String;
    //#input(String getCompositeKeyForStaticPage(StaticPage)): net/sourceforge/pebble/domain/StaticPage.__Descendant_Table[net/sourceforge/pebble/domain/StaticPage]
    //#input(String getCompositeKeyForStaticPage(StaticPage)): net/sourceforge/pebble/domain/StaticPage.__Descendant_Table[others]
    //#input(String getCompositeKeyForStaticPage(StaticPage)): net/sourceforge/pebble/domain/StaticPage.__Dispatch_Table.getBlog()Lnet/sourceforge/pebble/domain/Blog;
    //#input(String getCompositeKeyForStaticPage(StaticPage)): net/sourceforge/pebble/domain/StaticPage.__Dispatch_Table.getId()Ljava/lang/String;
    //#input(String getCompositeKeyForStaticPage(StaticPage)): staticPage
    //#input(String getCompositeKeyForStaticPage(StaticPage)): staticPage.__Tag
    //#input(String getCompositeKeyForStaticPage(StaticPage)): staticPage.blog
    //#input(String getCompositeKeyForStaticPage(StaticPage)): staticPage.blog.__Tag
    //#input(String getCompositeKeyForStaticPage(StaticPage)): staticPage.blog.id
    //#input(String getCompositeKeyForStaticPage(StaticPage)): staticPage.id
    //#input(String getCompositeKeyForStaticPage(StaticPage)): this
    //#output(String getCompositeKeyForStaticPage(StaticPage)): return_value
    //#pre[1] (String getCompositeKeyForStaticPage(StaticPage)): staticPage != null
    //#pre[2] (String getCompositeKeyForStaticPage(StaticPage)): staticPage.__Tag == net/sourceforge/pebble/domain/StaticPage
    //#pre[3] (String getCompositeKeyForStaticPage(StaticPage)): staticPage.blog != null
    //#pre[4] (String getCompositeKeyForStaticPage(StaticPage)): staticPage.blog.__Tag == net/sourceforge/pebble/domain/Blog
    //#pre[5] (String getCompositeKeyForStaticPage(StaticPage)): init'ed(staticPage.blog.id)
    //#pre[6] (String getCompositeKeyForStaticPage(StaticPage)): init'ed(staticPage.id)
    //#post(String getCompositeKeyForStaticPage(StaticPage)): return_value != null
    //#unanalyzed(String getCompositeKeyForStaticPage(StaticPage)): Effects-of-calling:getId
    //#unanalyzed(String getCompositeKeyForStaticPage(StaticPage)): Effects-of-calling:java.lang.String:valueOf
    //#unanalyzed(String getCompositeKeyForStaticPage(StaticPage)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(String getCompositeKeyForStaticPage(StaticPage)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(String getCompositeKeyForStaticPage(StaticPage)): Effects-of-calling:java.lang.StringBuilder:toString
    //#contentcache.java:126: end of method: String net.sourceforge.pebble.ContentCache.getCompositeKeyForStaticPage(StaticPage)
  }

  private String getCompositeKeyForStaticPage(Blog blog, String staticPageId) {
    return blog.getId() + "/staticPage/" + staticPageId;
    //#contentcache.java:130: method: String net.sourceforge.pebble.ContentCache.getCompositeKeyForStaticPage(Blog, String)
    //#input(String getCompositeKeyForStaticPage(Blog, String)): blog
    //#input(String getCompositeKeyForStaticPage(Blog, String)): blog.__Tag
    //#input(String getCompositeKeyForStaticPage(Blog, String)): blog.id
    //#input(String getCompositeKeyForStaticPage(Blog, String)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[net/sourceforge/pebble/domain/Blog]
    //#input(String getCompositeKeyForStaticPage(Blog, String)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[others]
    //#input(String getCompositeKeyForStaticPage(Blog, String)): net/sourceforge/pebble/domain/Blog.__Dispatch_Table.getId()Ljava/lang/String;
    //#input(String getCompositeKeyForStaticPage(Blog, String)): staticPageId
    //#output(String getCompositeKeyForStaticPage(Blog, String)): return_value
    //#pre[1] (String getCompositeKeyForStaticPage(Blog, String)): blog != null
    //#pre[2] (String getCompositeKeyForStaticPage(Blog, String)): blog.__Tag == net/sourceforge/pebble/domain/Blog
    //#pre[3] (String getCompositeKeyForStaticPage(Blog, String)): init'ed(blog.id)
    //#post(String getCompositeKeyForStaticPage(Blog, String)): return_value != null
    //#contentcache.java:130: end of method: String net.sourceforge.pebble.ContentCache.getCompositeKeyForStaticPage(Blog, String)
  }

}    //#contentcache.java:: end of class: net.sourceforge.pebble.ContentCache
