//# 7 errors, 902 messages
//#
/*
    //#OldWeblogPageModel.java:1:1: class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
 * Licensed to the Apache Software Foundation (ASF) under one or more
 *  contributor license agreements.  The ASF licenses this file to You
 * under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.  For additional information regarding
 * copyright in this work, please see the NOTICE file in the top level
 * directory of this distribution.
 */

package org.apache.roller.weblogger.ui.rendering.velocity.deprecated;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TimeZone;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.roller.weblogger.WebloggerException;
import org.apache.roller.weblogger.config.WebloggerRuntimeConfig;
import org.apache.roller.weblogger.business.BookmarkManager;
import org.apache.roller.weblogger.business.referrers.RefererManager;
import org.apache.roller.weblogger.business.WebloggerFactory;
import org.apache.roller.weblogger.business.UserManager;
import org.apache.roller.weblogger.business.WeblogManager;
import org.apache.roller.weblogger.pojos.WeblogEntryComment;
import org.apache.roller.weblogger.pojos.WeblogBookmarkFolder;
import org.apache.roller.weblogger.pojos.WeblogReferrer;
import org.apache.roller.weblogger.pojos.WeblogCategory;
import org.apache.roller.weblogger.pojos.WeblogEntry;
import org.apache.roller.weblogger.pojos.Weblog;
import org.apache.roller.weblogger.pojos.wrapper.WeblogEntryCommentWrapper;
import org.apache.roller.weblogger.pojos.wrapper.WeblogBookmarkFolderWrapper;
import org.apache.roller.weblogger.pojos.wrapper.WeblogReferrerWrapper;
import org.apache.roller.weblogger.pojos.wrapper.ThemeTemplateWrapper;
import org.apache.roller.weblogger.pojos.wrapper.WeblogCategoryWrapper;
import org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper;
import org.apache.roller.weblogger.pojos.wrapper.WeblogWrapper;
import org.apache.roller.weblogger.ui.core.RollerSession;
import org.apache.roller.util.DateUtil;
import org.apache.commons.lang.StringUtils;
import org.apache.roller.weblogger.business.URLStrategy;
import org.apache.roller.weblogger.pojos.WeblogHitCount;
import org.apache.roller.weblogger.pojos.ThemeTemplate;
import org.apache.roller.weblogger.pojos.WeblogPermission;


/**
 * Provides Roller page templates with access to Roller domain model objects.
 */
public class OldWeblogPageModel {
    public final static String VELOCITY_NULL = "nil";
    
    protected static Log mLogger =
    //#OldWeblogPageModel.java:71: method: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init
    //#OldWeblogPageModel.java:71: Warning: method not available
    //#    -- call on LogFactory org.apache.commons.logging.LogFactory:getFactory()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init
    //#    unanalyzed callee: LogFactory org.apache.commons.logging.LogFactory:getFactory()
    //#OldWeblogPageModel.java:71: Warning: method not available
    //#    -- call on Log org.apache.commons.logging.LogFactory:getInstance(Class)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init
    //#    unanalyzed callee: Log org.apache.commons.logging.LogFactory:getInstance(Class)
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Descendant_Table[org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldWeblogPageModel]
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getBookmarks(Lorg/apache/roller/weblogger/pojos/wrapper/WeblogBookmarkFolderWrapper;)Ljava/util/Collection;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getCommentCount(Ljava/lang/String;)I
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getCommentCount(Ljava/lang/String;ZZ)I
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getComments(Lorg/apache/roller/weblogger/pojos/wrapper/WeblogEntryWrapper;)Ljava/util/List;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getComments(Lorg/apache/roller/weblogger/pojos/wrapper/WeblogEntryWrapper;ZZ)Ljava/util/List;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getDayHits()I
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getEmailComments()Z
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getEntryReferers(Lorg/apache/roller/weblogger/pojos/wrapper/WeblogEntryWrapper;)Ljava/util/List;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getFolder(Ljava/lang/String;)Lorg/apache/roller/weblogger/pojos/wrapper/WeblogBookmarkFolderWrapper;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getFolderByPath(Ljava/lang/String;)Lorg/apache/roller/weblogger/pojos/wrapper/WeblogBookmarkFolderWrapper;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getIntRequestParameter(Ljava/lang/String;)I
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getModelName()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getNextEntry()Lorg/apache/roller/weblogger/pojos/wrapper/WeblogEntryWrapper;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getPageByName(Ljava/lang/String;)Lorg/apache/roller/weblogger/pojos/wrapper/ThemeTemplateWrapper;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getPageIdByName(Ljava/lang/String;)Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getPages()Ljava/lang/Object;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getPreviousEntry()Lorg/apache/roller/weblogger/pojos/wrapper/WeblogEntryWrapper;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getRecentComments(I)Ljava/util/List;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getRecentWeblogEntries(ILjava/lang/String;)Ljava/util/Map;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getRecentWeblogEntriesArray(ILjava/lang/String;)Ljava/util/List;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getReferers(Ljava/lang/String;)Ljava/util/List;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getRequestParameter(Ljava/lang/String;)Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getTodaysReferers()Ljava/util/List;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getTopLevelFolders()Ljava/util/Collection;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getTotalHits()I
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getUsersPageByName(Lorg/apache/roller/weblogger/pojos/wrapper/WeblogWrapper;Ljava/lang/String;)Lorg/apache/roller/weblogger/pojos/wrapper/ThemeTemplateWrapper;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getWeblogCategories(Ljava/lang/String;)Ljava/util/Set;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getWeblogEntry()Lorg/apache/roller/weblogger/pojos/wrapper/WeblogEntryWrapper;
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.init(Lorg/apache/roller/weblogger/business/URLStrategy;Ljavax/servlet/http/HttpServletRequest;Lorg/apache/roller/weblogger/pojos/Weblog;Lorg/apache/roller/weblogger/pojos/WeblogEntry;Lorg/apache/roller/weblogger/pojos/WeblogCategory;Ljava/util/Date;ZZLjava/lang/String;)V
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.isUserAuthenticated()Z
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.isUserAuthorizedToAdmin()Z
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.isUserAuthorizedToEdit()Z
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.setFirstAndLastEntries(Ljava/util/Map;)V
    //#output(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): mLogger
    //#presumption(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): org.apache.commons.logging.LogFactory:getFactory(...)@71 != null
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Descendant_Table[org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldWeblogPageModel] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getBookmarks(Lorg/apache/roller/weblogger/pojos/wrapper/WeblogBookmarkFolderWrapper;)Ljava/util/Collection; == &getBookmarks
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getCommentCount(Ljava/lang/String;)I == &getCommentCount
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getCommentCount(Ljava/lang/String;ZZ)I == &getCommentCount
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getComments(Lorg/apache/roller/weblogger/pojos/wrapper/WeblogEntryWrapper;)Ljava/util/List; == &getComments
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getComments(Lorg/apache/roller/weblogger/pojos/wrapper/WeblogEntryWrapper;ZZ)Ljava/util/List; == &getComments
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getDayHits()I == &getDayHits
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getEmailComments()Z == &getEmailComments
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getEntryReferers(Lorg/apache/roller/weblogger/pojos/wrapper/WeblogEntryWrapper;)Ljava/util/List; == &getEntryReferers
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getFolder(Ljava/lang/String;)Lorg/apache/roller/weblogger/pojos/wrapper/WeblogBookmarkFolderWrapper; == &getFolder
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getFolderByPath(Ljava/lang/String;)Lorg/apache/roller/weblogger/pojos/wrapper/WeblogBookmarkFolderWrapper; == &getFolderByPath
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getIntRequestParameter(Ljava/lang/String;)I == &getIntRequestParameter
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getModelName()Ljava/lang/String; == &getModelName
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getNextEntry()Lorg/apache/roller/weblogger/pojos/wrapper/WeblogEntryWrapper; == &getNextEntry
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getPageByName(Ljava/lang/String;)Lorg/apache/roller/weblogger/pojos/wrapper/ThemeTemplateWrapper; == &getPageByName
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getPageIdByName(Ljava/lang/String;)Ljava/lang/String; == &getPageIdByName
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getPages()Ljava/lang/Object; == &getPages
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getPreviousEntry()Lorg/apache/roller/weblogger/pojos/wrapper/WeblogEntryWrapper; == &getPreviousEntry
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getRecentComments(I)Ljava/util/List; == &getRecentComments
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getRecentWeblogEntries(ILjava/lang/String;)Ljava/util/Map; == &getRecentWeblogEntries
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getRecentWeblogEntriesArray(ILjava/lang/String;)Ljava/util/List; == &getRecentWeblogEntriesArray
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getReferers(Ljava/lang/String;)Ljava/util/List; == &getReferers
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getRequestParameter(Ljava/lang/String;)Ljava/lang/String; == &getRequestParameter
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getTodaysReferers()Ljava/util/List; == &getTodaysReferers
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getTopLevelFolders()Ljava/util/Collection; == &getTopLevelFolders
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getTotalHits()I == &getTotalHits
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getUsersPageByName(Lorg/apache/roller/weblogger/pojos/wrapper/WeblogWrapper;Ljava/lang/String;)Lorg/apache/roller/weblogger/pojos/wrapper/ThemeTemplateWrapper; == &getUsersPageByName
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getWeblogCategories(Ljava/lang/String;)Ljava/util/Set; == &getWeblogCategories
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.getWeblogEntry()Lorg/apache/roller/weblogger/pojos/wrapper/WeblogEntryWrapper; == &getWeblogEntry
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.init(Lorg/apache/roller/weblogger/business/URLStrategy;Ljavax/servlet/http/HttpServletRequest;Lorg/apache/roller/weblogger/pojos/Weblog;Lorg/apache/roller/weblogger/pojos/WeblogEntry;Lorg/apache/roller/weblogger/pojos/WeblogCategory;Ljava/util/Date;ZZLjava/lang/String;)V == &init
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.isUserAuthenticated()Z == &isUserAuthenticated
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.isUserAuthorizedToAdmin()Z == &isUserAuthorizedToAdmin
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.isUserAuthorizedToEdit()Z == &isUserAuthorizedToEdit
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): __Dispatch_Table.setFirstAndLastEntries(Ljava/util/Map;)V == &setFirstAndLastEntries
    //#post(org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init): init'ed(mLogger)
    //#OldWeblogPageModel.java:71: end of method: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel__static_init
            LogFactory.getFactory().getInstance(OldWeblogPageModel.class);
    
    private BookmarkManager      mBookmarkMgr = null;
    private WeblogManager        mWeblogMgr = null;
    private UserManager          mUserMgr = null;
    private RefererManager       mRefererMgr = null;
    
    private Map                  mCategories = new HashMap();
    private HashMap              mPageMap = new HashMap();
    private HttpServletRequest   mRequest = null;
    private Weblog          mWebsite = null;
    private WeblogEntry      mEntry = null;
    private WeblogCategory   mCategory = null;
    private Date                 mDate = null;
    private boolean              mIsDaySpecified = false;
    private boolean              mIsMonthSpecified = false;
    private String               mLocale = null;
    private WeblogEntryWrapper      mNextEntry = null;
    private WeblogEntryWrapper      mPreviousEntry = null;
    private WeblogEntryWrapper      mLastEntry = null;
    private WeblogEntryWrapper      mFirstEntry = null;
    
    private URLStrategy urlStrategy = null;
    
    //------------------------------------------------------------------------
    
    /** init() must be called to complete construction */
    public OldWeblogPageModel() {}
    //#OldWeblogPageModel.java:99: method: void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()
    //#input(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): new HashMap(OldWeblogPageModel#1) num objects
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): new HashMap(OldWeblogPageModel#2) num objects
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mBookmarkMgr
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mCategories
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mCategory
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mDate
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mEntry
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mFirstEntry
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mIsDaySpecified
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mIsMonthSpecified
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mLastEntry
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mLocale
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mNextEntry
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mPageMap
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mPreviousEntry
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mRefererMgr
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mRequest
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mUserMgr
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mWeblogMgr
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mWebsite
    //#output(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.urlStrategy
    //#new obj(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): new HashMap(OldWeblogPageModel#1)
    //#new obj(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): new HashMap(OldWeblogPageModel#2)
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mBookmarkMgr == null
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mCategory == null
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mDate == null
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mEntry == null
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mFirstEntry == null
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mLastEntry == null
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mLocale == null
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mNextEntry == null
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mPreviousEntry == null
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mRefererMgr == null
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mRequest == null
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mUserMgr == null
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mWeblogMgr == null
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mWebsite == null
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.urlStrategy == null
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mCategories == &new HashMap(OldWeblogPageModel#1)
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mIsDaySpecified == 0
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mIsMonthSpecified == 0
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): this.mPageMap == &new HashMap(OldWeblogPageModel#2)
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): new HashMap(OldWeblogPageModel#1) num objects == 1
    //#post(void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()): new HashMap(OldWeblogPageModel#2) num objects == 1
    //#OldWeblogPageModel.java:99: end of method: void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel()
    
    public String getModelName() {
        return "pageModel";
    //#OldWeblogPageModel.java:102: method: String org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getModelName()
    //#output(String getModelName()): return_value
    //#post(String getModelName()): return_value == &"pageModel"
    //#OldWeblogPageModel.java:102: end of method: String org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getModelName()
    }
    
    /**
     * Initialize PageModel and allow PageModel to initialized VelocityContext.
     */
    public void init(URLStrategy strat,
            HttpServletRequest request,
            Weblog website,
            WeblogEntry entry,
            WeblogCategory category,
            Date date,
            boolean isDay,
            boolean isMonth,
            String locale) {
        
        urlStrategy = strat;
    //#OldWeblogPageModel.java:118: method: void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)
    //#input(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): category
    //#input(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): date
    //#input(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): entry
    //#input(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): isDay
    //#input(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): isMonth
    //#input(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): java.util.Collections.EMPTY_LIST
    //#input(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): locale
    //#input(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): mLogger
    //#input(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): request
    //#input(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): strat
    //#input(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this
    //#input(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mPageMap
    //#input(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): website
    //#output(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mBookmarkMgr
    //#output(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mCategory
    //#output(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mDate
    //#output(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mEntry
    //#output(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mIsDaySpecified
    //#output(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mIsMonthSpecified
    //#output(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mLocale
    //#output(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mRefererMgr
    //#output(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mRequest
    //#output(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mUserMgr
    //#output(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mWeblogMgr
    //#output(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mWebsite
    //#output(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.urlStrategy
    //#pre[7] (void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): (soft) mLogger != null
    //#pre[11] (void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): (soft) this.mPageMap != null
    //#presumption(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): java.util.Collections.EMPTY_LIST != null
    //#presumption(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): java.util.Iterator:next(...)@150 != null
    //#presumption(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@130 != null
    //#presumption(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@131 != null
    //#presumption(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@132 != null
    //#presumption(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@133 != null
    //#presumption(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): org.apache.roller.weblogger.pojos.Weblog:getTheme(...)@143 != null
    //#presumption(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): org.apache.roller.weblogger.pojos.WeblogTheme:getTemplates(...)@143 != null
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): init'ed(this.mBookmarkMgr)
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mCategory == category
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): init'ed(this.mCategory)
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mDate == date
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): init'ed(this.mDate)
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mEntry == entry
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): init'ed(this.mEntry)
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mIsDaySpecified == isDay
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): init'ed(this.mIsDaySpecified)
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mIsMonthSpecified == isMonth
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): init'ed(this.mIsMonthSpecified)
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mLocale == locale
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): init'ed(this.mLocale)
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): init'ed(this.mRefererMgr)
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mRequest == request
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): init'ed(this.mRequest)
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): init'ed(this.mUserMgr)
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): init'ed(this.mWeblogMgr)
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.mWebsite == website
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): init'ed(this.mWebsite)
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): this.urlStrategy == strat
    //#post(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): init'ed(this.urlStrategy)
    //#test_vector(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): website: Addr_Set{null}, Inverse{null}
    //#test_vector(void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)): java.util.Iterator:hasNext(...)@149: {0}, {1}
        mRequest = request;
        
        // data we'll need in the methods
        mWebsite = website;
        mEntry = entry;
        mCategory = category;
        mDate = date;
        mIsDaySpecified = isDay;
        mIsMonthSpecified = isMonth;
        mLocale = locale;
        
        mBookmarkMgr = WebloggerFactory.getWeblogger().getBookmarkManager();
    //#OldWeblogPageModel.java:130: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#OldWeblogPageModel.java:130: Warning: method not available
    //#    -- call on BookmarkManager org.apache.roller.weblogger.business.Weblogger:getBookmarkManager()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)
    //#    unanalyzed callee: BookmarkManager org.apache.roller.weblogger.business.Weblogger:getBookmarkManager()
        mRefererMgr  = WebloggerFactory.getWeblogger().getRefererManager();
    //#OldWeblogPageModel.java:131: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#OldWeblogPageModel.java:131: Warning: method not available
    //#    -- call on RefererManager org.apache.roller.weblogger.business.Weblogger:getRefererManager()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)
    //#    unanalyzed callee: RefererManager org.apache.roller.weblogger.business.Weblogger:getRefererManager()
        mUserMgr     = WebloggerFactory.getWeblogger().getUserManager();
    //#OldWeblogPageModel.java:132: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#OldWeblogPageModel.java:132: Warning: method not available
    //#    -- call on UserManager org.apache.roller.weblogger.business.Weblogger:getUserManager()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)
    //#    unanalyzed callee: UserManager org.apache.roller.weblogger.business.Weblogger:getUserManager()
        mWeblogMgr   = WebloggerFactory.getWeblogger().getWeblogManager();
    //#OldWeblogPageModel.java:133: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#OldWeblogPageModel.java:133: Warning: method not available
    //#    -- call on WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)
    //#    unanalyzed callee: WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
        
        // Preload what we can for encapsulation.  What we cannot preload we
        // will use the Managers later to fetch.
        
        // Get the pages, put into context & load map
        if (mWebsite != null) {
            
            List pages = Collections.EMPTY_LIST;
            try {
                pages = mWebsite.getTheme().getTemplates();
    //#OldWeblogPageModel.java:143: Warning: method not available
    //#    -- call on WeblogTheme org.apache.roller.weblogger.pojos.Weblog:getTheme()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)
    //#    unanalyzed callee: WeblogTheme org.apache.roller.weblogger.pojos.Weblog:getTheme()
    //#OldWeblogPageModel.java:143: Warning: method not available
    //#    -- call on List org.apache.roller.weblogger.pojos.WeblogTheme:getTemplates()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)
    //#    unanalyzed callee: List org.apache.roller.weblogger.pojos.WeblogTheme:getTemplates()
            } catch (WebloggerException ex) {
                mLogger.error("error getting weblog pages", ex);
    //#OldWeblogPageModel.java:145: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object, Throwable)
            }
            
            Iterator pageIter = pages.iterator();
            while (pageIter.hasNext()) {
                ThemeTemplate page = (ThemeTemplate) pageIter.next();
                mPageMap.put(page.getName(),ThemeTemplateWrapper.wrap(page));
    //#OldWeblogPageModel.java:151: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.ThemeTemplate:getName()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.ThemeTemplate:getName()
    //#OldWeblogPageModel.java:151: Warning: method not available
    //#    -- call on ThemeTemplateWrapper org.apache.roller.weblogger.pojos.wrapper.ThemeTemplateWrapper:wrap(ThemeTemplate)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: void init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)
    //#    unanalyzed callee: ThemeTemplateWrapper org.apache.roller.weblogger.pojos.wrapper.ThemeTemplateWrapper:wrap(ThemeTemplate)
            }
        }
    }
    //#OldWeblogPageModel.java:154: end of method: void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.init(URLStrategy, HttpServletRequest, Weblog, WeblogEntry, WeblogCategory, Date, bool, bool, String)
    
    //------------------------------------------------------------------------
    
    /** Encapsulates folder.getBookmarks() & sorting */
    public Collection getBookmarks(WeblogBookmarkFolderWrapper folder) {
        Collection bookmarks = null;
    //#OldWeblogPageModel.java:160: method: Collection org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getBookmarks(WeblogBookmarkFolderWrapper)
    //#input(Collection getBookmarks(WeblogBookmarkFolderWrapper)): "Getting bookmarks for folder : "._tainted
    //#input(Collection getBookmarks(WeblogBookmarkFolderWrapper)): folder
    //#input(Collection getBookmarks(WeblogBookmarkFolderWrapper)): mLogger
    //#output(Collection getBookmarks(WeblogBookmarkFolderWrapper)): return_value
    //#pre[2] (Collection getBookmarks(WeblogBookmarkFolderWrapper)): (soft) mLogger != null
    //#post(Collection getBookmarks(WeblogBookmarkFolderWrapper)): init'ed(return_value)
    //#test_vector(Collection getBookmarks(WeblogBookmarkFolderWrapper)): folder: Addr_Set{null}, Inverse{null}
        if (folder != null) {
            mLogger.debug("Getting bookmarks for folder : "+folder.getName());
    //#OldWeblogPageModel.java:162: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.wrapper.WeblogBookmarkFolderWrapper:getName()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Collection getBookmarks(WeblogBookmarkFolderWrapper)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.wrapper.WeblogBookmarkFolderWrapper:getName()
    //#OldWeblogPageModel.java:162: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:debug(Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Collection getBookmarks(WeblogBookmarkFolderWrapper)
    //#    unanalyzed callee: void org.apache.commons.logging.Log:debug(Object)

            // since we already have a wrapped pojo we know the output
            // will be wrapped as well :)
            bookmarks = folder.getBookmarks();
    //#OldWeblogPageModel.java:166: Warning: method not available
    //#    -- call on List org.apache.roller.weblogger.pojos.wrapper.WeblogBookmarkFolderWrapper:getBookmarks()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Collection getBookmarks(WeblogBookmarkFolderWrapper)
    //#    unanalyzed callee: List org.apache.roller.weblogger.pojos.wrapper.WeblogBookmarkFolderWrapper:getBookmarks()

            // TODO: need to setup new BookmarkWrapperComparator
            //List mBookmarks = new ArrayList(bookmarks);
            //Collections.sort( mBookmarks, new BookmarkComparator() );
        }
        return bookmarks;
    //#OldWeblogPageModel.java:172: end of method: Collection org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getBookmarks(WeblogBookmarkFolderWrapper)
    }
    
    //------------------------------------------------------------------------
    
    /** Get top level bookmark folders. */
    public Collection getTopLevelFolders() {
        List tops = null;
    //#OldWeblogPageModel.java:179: method: Collection org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getTopLevelFolders()
    //#OldWeblogPageModel.java:179: Warning: unused assignment
    //#    unused assignment into tops
    //#    severity: SUPPRESSED
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Collection getTopLevelFolders()
    //#    Attribs:  Uncertain
    //#input(Collection getTopLevelFolders()): this
    //#input(Collection getTopLevelFolders()): this.mBookmarkMgr
    //#input(Collection getTopLevelFolders()): this.mUserMgr
    //#input(Collection getTopLevelFolders()): this.mWebsite
    //#output(Collection getTopLevelFolders()): new ArrayList(getTopLevelFolders#1) num objects
    //#output(Collection getTopLevelFolders()): new ArrayList(getTopLevelFolders#2) num objects
    //#output(Collection getTopLevelFolders()): return_value
    //#new obj(Collection getTopLevelFolders()): new ArrayList(getTopLevelFolders#1)
    //#new obj(Collection getTopLevelFolders()): new ArrayList(getTopLevelFolders#2)
    //#pre[2] (Collection getTopLevelFolders()): (soft) this.mBookmarkMgr != null
    //#pre[3] (Collection getTopLevelFolders()): (soft) this.mUserMgr != null
    //#pre[4] (Collection getTopLevelFolders()): (soft) this.mWebsite != null
    //#presumption(Collection getTopLevelFolders()): org.apache.roller.weblogger.business.BookmarkManager:getRootFolder(...)@181 != null
    //#presumption(Collection getTopLevelFolders()): org.apache.roller.weblogger.pojos.WeblogBookmarkFolder:getFolders(...)@181 != null
    //#post(Collection getTopLevelFolders()): return_value == One-of{&new ArrayList(getTopLevelFolders#1), &new ArrayList(getTopLevelFolders#2)}
    //#post(Collection getTopLevelFolders()): return_value in Addr_Set{&new ArrayList(getTopLevelFolders#1),&new ArrayList(getTopLevelFolders#2)}
    //#post(Collection getTopLevelFolders()): new ArrayList(getTopLevelFolders#1) num objects <= 1
    //#post(Collection getTopLevelFolders()): new ArrayList(getTopLevelFolders#2) num objects <= 1
        try {
            Collection mTops = mBookmarkMgr.getRootFolder(
    //#OldWeblogPageModel.java:181: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.Weblog:getHandle()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Collection getTopLevelFolders()
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.Weblog:getHandle()
    //#OldWeblogPageModel.java:181: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.business.UserManager:getWebsiteByHandle(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Collection getTopLevelFolders()
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.business.UserManager:getWebsiteByHandle(String)
    //#OldWeblogPageModel.java:181: Warning: method not available
    //#    -- call on WeblogBookmarkFolder org.apache.roller.weblogger.business.BookmarkManager:getRootFolder(Weblog)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Collection getTopLevelFolders()
    //#    unanalyzed callee: WeblogBookmarkFolder org.apache.roller.weblogger.business.BookmarkManager:getRootFolder(Weblog)
    //#OldWeblogPageModel.java:181: Warning: method not available
    //#    -- call on Set org.apache.roller.weblogger.pojos.WeblogBookmarkFolder:getFolders()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Collection getTopLevelFolders()
    //#    unanalyzed callee: Set org.apache.roller.weblogger.pojos.WeblogBookmarkFolder:getFolders()
                    mUserMgr.getWebsiteByHandle(mWebsite.getHandle())).getFolders();
            
            // wrap pojos
            tops = new ArrayList(mTops.size());
            Iterator it = mTops.iterator();
            int i=0;
            while(it.hasNext()) {
                tops.add(i,WeblogBookmarkFolderWrapper.wrap((WeblogBookmarkFolder) it.next()));
    //#OldWeblogPageModel.java:189: Warning: method not available
    //#    -- call on WeblogBookmarkFolderWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogBookmarkFolderWrapper:wrap(WeblogBookmarkFolder)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Collection getTopLevelFolders()
    //#    unanalyzed callee: WeblogBookmarkFolderWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogBookmarkFolderWrapper:wrap(WeblogBookmarkFolder)
                i++;
    //#OldWeblogPageModel.java:190: ?overflow
    //#    i in -2_147_483_649..4_294_967_294
    //#    severity: LOW
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Collection getTopLevelFolders()
    //#    basic block: bb_4
    //#    assertion: i in -2_147_483_649..4_294_967_294
    //#    VN: i + 1
    //#    Expected: {-2_147_483_648..4_294_967_295, Invalid}
    //#    Bad: {4_294_967_296}
    //#    Attribs:  Int  Bad singleton  Bad > Exp
            }
        } catch (WebloggerException e) {
            tops = new ArrayList();
        }
        return tops;
    //#OldWeblogPageModel.java:195: end of method: Collection org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getTopLevelFolders()
    }
    
    //------------------------------------------------------------------------
    
    /** Get number of approved non-spam comments for entry */
    public int getCommentCount(String entryId) {
        return getCommentCount(entryId, true, true);
    //#OldWeblogPageModel.java:202: method: int org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getCommentCount(String)
    //#input(int getCommentCount(String)): __Descendant_Table[org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldWeblogPageModel]
    //#input(int getCommentCount(String)): __Descendant_Table[others]
    //#input(int getCommentCount(String)): __Dispatch_Table.getCommentCount(Ljava/lang/String;ZZ)I
    //#input(int getCommentCount(String)): entryId
    //#input(int getCommentCount(String)): this
    //#input(int getCommentCount(String)): this.__Tag
    //#input(int getCommentCount(String)): this.mWeblogMgr
    //#output(int getCommentCount(String)): return_value
    //#pre[3] (int getCommentCount(String)): this.__Tag == org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldWeblogPageModel
    //#pre[4] (int getCommentCount(String)): (soft) this.mWeblogMgr != null
    //#post(int getCommentCount(String)): init'ed(return_value)
    //#unanalyzed(int getCommentCount(String)): Effects-of-calling:java.lang.Throwable:__curr_excep_obj
    //#unanalyzed(int getCommentCount(String)): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:getComments
    //#unanalyzed(int getCommentCount(String)): Effects-of-calling:java.util.List:size
    //#unanalyzed(int getCommentCount(String)): Effects-of-calling:org.apache.roller.weblogger.business.WeblogManager:getWeblogEntry
    //#OldWeblogPageModel.java:202: end of method: int org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getCommentCount(String)
    }
    
    /** Get number of approved non-spam comments for entry */
    public int getCommentCount(String entryId, boolean noSpam, boolean approvedOnly) {
        try {
            WeblogEntry entry = mWeblogMgr.getWeblogEntry(entryId);
    //#OldWeblogPageModel.java:208: method: int org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getCommentCount(String, bool, bool)
    //#OldWeblogPageModel.java:208: Warning: method not available
    //#    -- call on WeblogEntry org.apache.roller.weblogger.business.WeblogManager:getWeblogEntry(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: int getCommentCount(String, bool, bool)
    //#    unanalyzed callee: WeblogEntry org.apache.roller.weblogger.business.WeblogManager:getWeblogEntry(String)
    //#input(int getCommentCount(String, bool, bool)): approvedOnly
    //#input(int getCommentCount(String, bool, bool)): entryId
    //#input(int getCommentCount(String, bool, bool)): noSpam
    //#input(int getCommentCount(String, bool, bool)): this
    //#input(int getCommentCount(String, bool, bool)): this.mWeblogMgr
    //#output(int getCommentCount(String, bool, bool)): return_value
    //#pre[5] (int getCommentCount(String, bool, bool)): (soft) this.mWeblogMgr != null
    //#presumption(int getCommentCount(String, bool, bool)): org.apache.roller.weblogger.business.WeblogManager:getWeblogEntry(...)@208 != null
    //#presumption(int getCommentCount(String, bool, bool)): org.apache.roller.weblogger.pojos.WeblogEntry:getComments(...)@209 != null
    //#post(int getCommentCount(String, bool, bool)): init'ed(return_value)
            return entry.getComments(noSpam, approvedOnly).size();
    //#OldWeblogPageModel.java:209: Warning: method not available
    //#    -- call on List org.apache.roller.weblogger.pojos.WeblogEntry:getComments(bool, bool)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: int getCommentCount(String, bool, bool)
    //#    unanalyzed callee: List org.apache.roller.weblogger.pojos.WeblogEntry:getComments(bool, bool)
        } catch (WebloggerException alreadyLogged) {}
        return 0;
    //#OldWeblogPageModel.java:211: end of method: int org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getCommentCount(String, bool, bool)
    }
    
    //------------------------------------------------------------------------
    
    /** Get comments for weblog entry specified by request */
    public List getComments(WeblogEntryWrapper entry) {
        return getComments(entry, true, true);
    //#OldWeblogPageModel.java:218: method: List org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getComments(WeblogEntryWrapper)
    //#input(List getComments(WeblogEntryWrapper)): __Descendant_Table[org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldWeblogPageModel]
    //#input(List getComments(WeblogEntryWrapper)): __Descendant_Table[others]
    //#input(List getComments(WeblogEntryWrapper)): __Dispatch_Table.getComments(Lorg/apache/roller/weblogger/pojos/wrapper/WeblogEntryWrapper;ZZ)Ljava/util/List;
    //#input(List getComments(WeblogEntryWrapper)): entry
    //#input(List getComments(WeblogEntryWrapper)): this
    //#input(List getComments(WeblogEntryWrapper)): this.__Tag
    //#input(List getComments(WeblogEntryWrapper)): this.urlStrategy
    //#output(List getComments(WeblogEntryWrapper)): new ArrayList(getComments#1*) num objects
    //#output(List getComments(WeblogEntryWrapper)): new ArrayList(getComments#2*) num objects
    //#output(List getComments(WeblogEntryWrapper)): return_value
    //#new obj(List getComments(WeblogEntryWrapper)): new ArrayList(getComments#1*)
    //#new obj(List getComments(WeblogEntryWrapper)): new ArrayList(getComments#2*)
    //#pre[1] (List getComments(WeblogEntryWrapper)): entry != null
    //#pre[3] (List getComments(WeblogEntryWrapper)): this.__Tag == org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldWeblogPageModel
    //#pre[4] (List getComments(WeblogEntryWrapper)): (soft) init'ed(this.urlStrategy)
    //#post(List getComments(WeblogEntryWrapper)): return_value == &new ArrayList(getComments#2*)
    //#post(List getComments(WeblogEntryWrapper)): new ArrayList(getComments#1*) num objects == 1
    //#post(List getComments(WeblogEntryWrapper)): new ArrayList(getComments#2*) num objects == 1
    //#unanalyzed(List getComments(WeblogEntryWrapper)): Effects-of-calling:java.util.List:iterator
    //#unanalyzed(List getComments(WeblogEntryWrapper)): Effects-of-calling:java.util.Iterator:hasNext
    //#unanalyzed(List getComments(WeblogEntryWrapper)): Effects-of-calling:java.util.Iterator:next
    //#unanalyzed(List getComments(WeblogEntryWrapper)): Effects-of-calling:java.util.ArrayList
    //#unanalyzed(List getComments(WeblogEntryWrapper)): Effects-of-calling:org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:getPojo
    //#unanalyzed(List getComments(WeblogEntryWrapper)): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:getComments
    //#unanalyzed(List getComments(WeblogEntryWrapper)): Effects-of-calling:java.util.List:size
    //#unanalyzed(List getComments(WeblogEntryWrapper)): Effects-of-calling:org.apache.roller.weblogger.pojos.wrapper.WeblogEntryCommentWrapper:wrap
    //#unanalyzed(List getComments(WeblogEntryWrapper)): Effects-of-calling:java.util.List:add
    //#OldWeblogPageModel.java:218: end of method: List org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getComments(WeblogEntryWrapper)
    }
    
    /** Get comments for weblog entry specified by request */
    public List getComments(WeblogEntryWrapper wrapper, boolean noSpam, boolean approvedOnly) {
        WeblogEntry entry = wrapper.getPojo();
    //#OldWeblogPageModel.java:223: method: List org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getComments(WeblogEntryWrapper, bool, bool)
    //#OldWeblogPageModel.java:223: Warning: method not available
    //#    -- call on WeblogEntry org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:getPojo()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getComments(WeblogEntryWrapper, bool, bool)
    //#    unanalyzed callee: WeblogEntry org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:getPojo()
    //#input(List getComments(WeblogEntryWrapper, bool, bool)): approvedOnly
    //#input(List getComments(WeblogEntryWrapper, bool, bool)): noSpam
    //#input(List getComments(WeblogEntryWrapper, bool, bool)): this
    //#input(List getComments(WeblogEntryWrapper, bool, bool)): this.urlStrategy
    //#input(List getComments(WeblogEntryWrapper, bool, bool)): wrapper
    //#output(List getComments(WeblogEntryWrapper, bool, bool)): new ArrayList(getComments#1) num objects
    //#output(List getComments(WeblogEntryWrapper, bool, bool)): new ArrayList(getComments#2) num objects
    //#output(List getComments(WeblogEntryWrapper, bool, bool)): return_value
    //#new obj(List getComments(WeblogEntryWrapper, bool, bool)): new ArrayList(getComments#1)
    //#new obj(List getComments(WeblogEntryWrapper, bool, bool)): new ArrayList(getComments#2)
    //#pre[5] (List getComments(WeblogEntryWrapper, bool, bool)): wrapper != null
    //#pre[4] (List getComments(WeblogEntryWrapper, bool, bool)): (soft) init'ed(this.urlStrategy)
    //#presumption(List getComments(WeblogEntryWrapper, bool, bool)): org.apache.roller.weblogger.pojos.WeblogEntry:getComments(...)@225 != null
    //#presumption(List getComments(WeblogEntryWrapper, bool, bool)): org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:getPojo(...)@223 != null
    //#post(List getComments(WeblogEntryWrapper, bool, bool)): return_value == &new ArrayList(getComments#2)
    //#post(List getComments(WeblogEntryWrapper, bool, bool)): new ArrayList(getComments#1) num objects == 1
    //#post(List getComments(WeblogEntryWrapper, bool, bool)): new ArrayList(getComments#2) num objects == 1
    //#test_vector(List getComments(WeblogEntryWrapper, bool, bool)): java.util.Iterator:hasNext(...)@228: {0}, {1}
        List comments = new ArrayList();
    //#OldWeblogPageModel.java:224: Warning: unused assignment
    //#    unused assignment into comments
    //#    severity: LOW
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getComments(WeblogEntryWrapper, bool, bool)
        List unwrappped = entry.getComments(noSpam, approvedOnly);
    //#OldWeblogPageModel.java:225: Warning: method not available
    //#    -- call on List org.apache.roller.weblogger.pojos.WeblogEntry:getComments(bool, bool)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getComments(WeblogEntryWrapper, bool, bool)
    //#    unanalyzed callee: List org.apache.roller.weblogger.pojos.WeblogEntry:getComments(bool, bool)
        comments = new ArrayList(unwrappped.size());
        Iterator it = unwrappped.iterator();
        while(it.hasNext()) {
            comments.add(WeblogEntryCommentWrapper.wrap((WeblogEntryComment)it.next(), urlStrategy));
    //#OldWeblogPageModel.java:229: Warning: method not available
    //#    -- call on WeblogEntryCommentWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogEntryCommentWrapper:wrap(WeblogEntryComment, URLStrategy)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getComments(WeblogEntryWrapper, bool, bool)
    //#    unanalyzed callee: WeblogEntryCommentWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogEntryCommentWrapper:wrap(WeblogEntryComment, URLStrategy)
        }
        return comments;
    //#OldWeblogPageModel.java:231: end of method: List org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getComments(WeblogEntryWrapper, bool, bool)
    }
    
    //------------------------------------------------------------------------
    
    /** Encapsulates RefererManager */
    public int getDayHits() {
        try {
            WeblogHitCount hitCount = mWeblogMgr.getHitCountByWeblog(mWebsite);
    //#OldWeblogPageModel.java:239: method: int org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getDayHits()
    //#OldWeblogPageModel.java:239: Warning: method not available
    //#    -- call on WeblogHitCount org.apache.roller.weblogger.business.WeblogManager:getHitCountByWeblog(Weblog)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: int getDayHits()
    //#    unanalyzed callee: WeblogHitCount org.apache.roller.weblogger.business.WeblogManager:getHitCountByWeblog(Weblog)
    //#input(int getDayHits()): mLogger
    //#input(int getDayHits()): this
    //#input(int getDayHits()): this.mWeblogMgr
    //#input(int getDayHits()): this.mWebsite
    //#output(int getDayHits()): return_value
    //#pre[1] (int getDayHits()): (soft) mLogger != null
    //#pre[3] (int getDayHits()): (soft) this.mWeblogMgr != null
    //#pre[4] (int getDayHits()): (soft) init'ed(this.mWebsite)
    //#post(int getDayHits()): init'ed(return_value)
            
            return (hitCount != null) ? hitCount.getDailyHits() : 0;
    //#OldWeblogPageModel.java:241: Warning: method not available
    //#    -- call on int org.apache.roller.weblogger.pojos.WeblogHitCount:getDailyHits()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: int getDayHits()
    //#    unanalyzed callee: int org.apache.roller.weblogger.pojos.WeblogHitCount:getDailyHits()
            
        } catch (WebloggerException e) {
            mLogger.error("PageModel getDayHits()", e);
    //#OldWeblogPageModel.java:244: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: int getDayHits()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object, Throwable)
        }
        return 0;
    //#OldWeblogPageModel.java:246: end of method: int org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getDayHits()
    }
    
    //------------------------------------------------------------------------
    
    /** Encapsulates BookmarkManager.getFolder() */
    public WeblogBookmarkFolderWrapper getFolder(String folderPath) {
        try {
            return WeblogBookmarkFolderWrapper.wrap(
    //#OldWeblogPageModel.java:254: method: WeblogBookmarkFolderWrapper org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getFolder(String)
    //#OldWeblogPageModel.java:254: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.Weblog:getHandle()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogBookmarkFolderWrapper getFolder(String)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.Weblog:getHandle()
    //#OldWeblogPageModel.java:254: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.business.UserManager:getWebsiteByHandle(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogBookmarkFolderWrapper getFolder(String)
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.business.UserManager:getWebsiteByHandle(String)
    //#OldWeblogPageModel.java:254: Warning: method not available
    //#    -- call on WeblogBookmarkFolder org.apache.roller.weblogger.business.BookmarkManager:getFolder(Weblog, String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogBookmarkFolderWrapper getFolder(String)
    //#    unanalyzed callee: WeblogBookmarkFolder org.apache.roller.weblogger.business.BookmarkManager:getFolder(Weblog, String)
    //#OldWeblogPageModel.java:254: Warning: method not available
    //#    -- call on WeblogBookmarkFolderWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogBookmarkFolderWrapper:wrap(WeblogBookmarkFolder)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogBookmarkFolderWrapper getFolder(String)
    //#    unanalyzed callee: WeblogBookmarkFolderWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogBookmarkFolderWrapper:wrap(WeblogBookmarkFolder)
    //#input(WeblogBookmarkFolderWrapper getFolder(String)): folderPath
    //#input(WeblogBookmarkFolderWrapper getFolder(String)): mLogger
    //#input(WeblogBookmarkFolderWrapper getFolder(String)): this
    //#input(WeblogBookmarkFolderWrapper getFolder(String)): this.mBookmarkMgr
    //#input(WeblogBookmarkFolderWrapper getFolder(String)): this.mUserMgr
    //#input(WeblogBookmarkFolderWrapper getFolder(String)): this.mWebsite
    //#output(WeblogBookmarkFolderWrapper getFolder(String)): return_value
    //#pre[2] (WeblogBookmarkFolderWrapper getFolder(String)): (soft) mLogger != null
    //#pre[4] (WeblogBookmarkFolderWrapper getFolder(String)): (soft) this.mBookmarkMgr != null
    //#pre[5] (WeblogBookmarkFolderWrapper getFolder(String)): (soft) this.mUserMgr != null
    //#pre[6] (WeblogBookmarkFolderWrapper getFolder(String)): (soft) this.mWebsite != null
    //#post(WeblogBookmarkFolderWrapper getFolder(String)): init'ed(return_value)
                    mBookmarkMgr.getFolder(
                    mUserMgr.getWebsiteByHandle(mWebsite.getHandle()), folderPath));
        } catch (WebloggerException e) {
            mLogger.error("PageModel getFolder()", e);
    //#OldWeblogPageModel.java:258: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogBookmarkFolderWrapper getFolder(String)
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object, Throwable)
        }
        return null;
    //#OldWeblogPageModel.java:260: end of method: WeblogBookmarkFolderWrapper org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getFolder(String)
    }
    
    //------------------------------------------------------------------------
    
    /** Encapsulates UserManager.getPageByName() */
    public ThemeTemplateWrapper getUsersPageByName(WeblogWrapper wrapper, String pageName) {
        Weblog website = wrapper.getPojo();
    //#OldWeblogPageModel.java:267: method: ThemeTemplateWrapper org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getUsersPageByName(WeblogWrapper, String)
    //#OldWeblogPageModel.java:267: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.pojos.wrapper.WeblogWrapper:getPojo()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: ThemeTemplateWrapper getUsersPageByName(WeblogWrapper, String)
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.pojos.wrapper.WeblogWrapper:getPojo()
    //#input(ThemeTemplateWrapper getUsersPageByName(WeblogWrapper, String)): "ERROR getting user's page by name: "._tainted
    //#input(ThemeTemplateWrapper getUsersPageByName(WeblogWrapper, String)): mLogger
    //#input(ThemeTemplateWrapper getUsersPageByName(WeblogWrapper, String)): pageName
    //#input(ThemeTemplateWrapper getUsersPageByName(WeblogWrapper, String)): wrapper
    //#output(ThemeTemplateWrapper getUsersPageByName(WeblogWrapper, String)): return_value
    //#pre[3] (ThemeTemplateWrapper getUsersPageByName(WeblogWrapper, String)): wrapper != null
    //#pre[1] (ThemeTemplateWrapper getUsersPageByName(WeblogWrapper, String)): (soft) mLogger != null
    //#pre[2] (ThemeTemplateWrapper getUsersPageByName(WeblogWrapper, String)): (soft) pageName != null
    //#presumption(ThemeTemplateWrapper getUsersPageByName(WeblogWrapper, String)): org.apache.roller.weblogger.pojos.Weblog:getTheme(...)@276 != null
    //#presumption(ThemeTemplateWrapper getUsersPageByName(WeblogWrapper, String)): org.apache.roller.weblogger.pojos.wrapper.WeblogWrapper:getPojo(...)@267 != null
    //#post(ThemeTemplateWrapper getUsersPageByName(WeblogWrapper, String)): init'ed(return_value)
        ThemeTemplateWrapper page = null;
        try {
            if (website == null)
                throw new NullPointerException("website is null");
            
            if (pageName == null)
                throw new NullPointerException("pageName is null");
            
            page = ThemeTemplateWrapper.wrap(website.getTheme().getTemplateByName(pageName));
    //#OldWeblogPageModel.java:276: Warning: method not available
    //#    -- call on WeblogTheme org.apache.roller.weblogger.pojos.Weblog:getTheme()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: ThemeTemplateWrapper getUsersPageByName(WeblogWrapper, String)
    //#    unanalyzed callee: WeblogTheme org.apache.roller.weblogger.pojos.Weblog:getTheme()
    //#OldWeblogPageModel.java:276: Warning: method not available
    //#    -- call on ThemeTemplate org.apache.roller.weblogger.pojos.WeblogTheme:getTemplateByName(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: ThemeTemplateWrapper getUsersPageByName(WeblogWrapper, String)
    //#    unanalyzed callee: ThemeTemplate org.apache.roller.weblogger.pojos.WeblogTheme:getTemplateByName(String)
    //#OldWeblogPageModel.java:276: Warning: method not available
    //#    -- call on ThemeTemplateWrapper org.apache.roller.weblogger.pojos.wrapper.ThemeTemplateWrapper:wrap(ThemeTemplate)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: ThemeTemplateWrapper getUsersPageByName(WeblogWrapper, String)
    //#    unanalyzed callee: ThemeTemplateWrapper org.apache.roller.weblogger.pojos.wrapper.ThemeTemplateWrapper:wrap(ThemeTemplate)
        } catch (NullPointerException npe) {
            mLogger.warn(npe.getMessage());
    //#OldWeblogPageModel.java:278: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:warn(Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: ThemeTemplateWrapper getUsersPageByName(WeblogWrapper, String)
    //#    unanalyzed callee: void org.apache.commons.logging.Log:warn(Object)
        } catch (WebloggerException e) {
            mLogger.error("ERROR getting user's page by name: " + e.getMessage(),e);
    //#OldWeblogPageModel.java:280: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.WebloggerException:getMessage()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: ThemeTemplateWrapper getUsersPageByName(WeblogWrapper, String)
    //#    unanalyzed callee: String org.apache.roller.weblogger.WebloggerException:getMessage()
    //#OldWeblogPageModel.java:280: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: ThemeTemplateWrapper getUsersPageByName(WeblogWrapper, String)
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object, Throwable)
        }
        return page;
    //#OldWeblogPageModel.java:282: end of method: ThemeTemplateWrapper org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getUsersPageByName(WeblogWrapper, String)
    }
    
    //------------------------------------------------------------------------
    
    /** Encapsulates UserManager.getPageByName() */
    public ThemeTemplateWrapper getPageByName(String pageName) {
        return (ThemeTemplateWrapper) mPageMap.get(pageName);
    //#OldWeblogPageModel.java:289: method: ThemeTemplateWrapper org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getPageByName(String)
    //#input(ThemeTemplateWrapper getPageByName(String)): pageName
    //#input(ThemeTemplateWrapper getPageByName(String)): this
    //#input(ThemeTemplateWrapper getPageByName(String)): this.mPageMap
    //#output(ThemeTemplateWrapper getPageByName(String)): return_value
    //#pre[3] (ThemeTemplateWrapper getPageByName(String)): this.mPageMap != null
    //#post(ThemeTemplateWrapper getPageByName(String)): init'ed(return_value)
    //#OldWeblogPageModel.java:289: end of method: ThemeTemplateWrapper org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getPageByName(String)
    }
    
    //------------------------------------------------------------------------
    
    /** Encapsulates UserManager.getPageByName() */
    public String getPageIdByName(String pageName) {
        mLogger.debug("looking up page ["+pageName+"]");
    //#OldWeblogPageModel.java:296: method: String org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getPageIdByName(String)
    //#OldWeblogPageModel.java:296: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:debug(Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: String getPageIdByName(String)
    //#    unanalyzed callee: void org.apache.commons.logging.Log:debug(Object)
    //#input(String getPageIdByName(String)): "]"._tainted
    //#input(String getPageIdByName(String)): "looking up page ["._tainted
    //#input(String getPageIdByName(String)): "returning template id ["._tainted
    //#input(String getPageIdByName(String)): mLogger
    //#input(String getPageIdByName(String)): pageName
    //#input(String getPageIdByName(String)): pageName._tainted
    //#input(String getPageIdByName(String)): this
    //#input(String getPageIdByName(String)): this.mWebsite
    //#output(String getPageIdByName(String)): return_value
    //#pre[1] (String getPageIdByName(String)): mLogger != null
    //#pre[5] (String getPageIdByName(String)): (soft) this.mWebsite != null
    //#presumption(String getPageIdByName(String)): org.apache.roller.weblogger.pojos.Weblog:getTheme(...)@301 != null
    //#post(String getPageIdByName(String)): init'ed(return_value)
    //#test_vector(String getPageIdByName(String)): org.apache.roller.weblogger.pojos.WeblogTheme:getTemplateByName(...)@301: Addr_Set{null}, Inverse{null}
        
        String template_id = null;
        
        try {
            ThemeTemplate pd = mWebsite.getTheme().getTemplateByName(pageName);
    //#OldWeblogPageModel.java:301: Warning: method not available
    //#    -- call on WeblogTheme org.apache.roller.weblogger.pojos.Weblog:getTheme()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: String getPageIdByName(String)
    //#    unanalyzed callee: WeblogTheme org.apache.roller.weblogger.pojos.Weblog:getTheme()
    //#OldWeblogPageModel.java:301: Warning: method not available
    //#    -- call on ThemeTemplate org.apache.roller.weblogger.pojos.WeblogTheme:getTemplateByName(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: String getPageIdByName(String)
    //#    unanalyzed callee: ThemeTemplate org.apache.roller.weblogger.pojos.WeblogTheme:getTemplateByName(String)
            if(pd != null) {
                template_id = pd.getId();
    //#OldWeblogPageModel.java:303: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.ThemeTemplate:getId()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: String getPageIdByName(String)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.ThemeTemplate:getId()
            }
        } catch(Exception e) {
            mLogger.error(e);
    //#OldWeblogPageModel.java:306: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: String getPageIdByName(String)
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object)
        }
        
        mLogger.debug("returning template id ["+template_id+"]");
    //#OldWeblogPageModel.java:309: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:debug(Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: String getPageIdByName(String)
    //#    unanalyzed callee: void org.apache.commons.logging.Log:debug(Object)
        
        return template_id;
    //#OldWeblogPageModel.java:311: end of method: String org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getPageIdByName(String)
    }
    
    //------------------------------------------------------------------------
    
    /**
     * Get collection of user pages.
     * @return
     */
    public Object getPages() {
        return mPageMap.values();
    //#OldWeblogPageModel.java:321: method: Object org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getPages()
    //#input(Object getPages()): this
    //#input(Object getPages()): this.mPageMap
    //#output(Object getPages()): return_value
    //#pre[2] (Object getPages()): this.mPageMap != null
    //#post(Object getPages()): init'ed(return_value)
    //#OldWeblogPageModel.java:321: end of method: Object org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getPages()
    }
    
    //------------------------------------------------------------------------
    
    /**
     * Returns a map of up to 100 recent weblog entries for the user and day
     * specified in the request, filtered by the category specified by the
     * request, limited by the 'maxEntries' argument, and sorted by reverse
     * chronological order.
     *
     * <p>This method will look for a category name in the following places
     * and in the following order:</p>
     * <ul>
     * <li>The request via RollerRequest.getWeblogCategory().</li>
     * <li>The categoryName argument to this method.</li>
     * <li>The default category for the website specified by the request via
     *     RollerRequest.getWebsite().getDefaultCategory().</li>
     * <li></li>
     * </ul>
     *
     * @param maxEntries Maximum number of entries to be returned (only applies 
     *                   if specific day not specified).
     * @param catName    Only return entries from this category and it's
     *                   subcategories. If null, returns all categories of entry
     * @return           Map of Lists of WeblogEntryData, keyed by 8-char date 
     *                   strings.
     */
    public Map getRecentWeblogEntries(int maxEntries, String catName) {
        if (VELOCITY_NULL.equals(catName)) catName = null;
    //#OldWeblogPageModel.java:350: method: Map org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getRecentWeblogEntries(int, String)
    //#input(Map getRecentWeblogEntries(int, String)): catName
    //#input(Map getRecentWeblogEntries(int, String)): mLogger
    //#input(Map getRecentWeblogEntries(int, String)): this
    //#input(Map getRecentWeblogEntries(int, String)): this.mCategory
    //#input(Map getRecentWeblogEntries(int, String)): this.mDate
    //#input(Map getRecentWeblogEntries(int, String)): this.mIsDaySpecified
    //#input(Map getRecentWeblogEntries(int, String)): this.mIsMonthSpecified
    //#input(Map getRecentWeblogEntries(int, String)): this.mLocale
    //#input(Map getRecentWeblogEntries(int, String)): this.mWebsite
    //#input(Map getRecentWeblogEntries(int, String)): this.urlStrategy
    //#output(Map getRecentWeblogEntries(int, String)): new HashMap(getRecentWeblogEntries#1) num objects
    //#output(Map getRecentWeblogEntries(int, String)): return_value
    //#output(Map getRecentWeblogEntries(int, String)): this.mFirstEntry
    //#output(Map getRecentWeblogEntries(int, String)): this.mLastEntry
    //#new obj(Map getRecentWeblogEntries(int, String)): new HashMap(getRecentWeblogEntries#1)
    //#pre[2] (Map getRecentWeblogEntries(int, String)): (soft) mLogger != null
    //#pre[6] (Map getRecentWeblogEntries(int, String)): (soft) init'ed(this.mCategory)
    //#pre[7] (Map getRecentWeblogEntries(int, String)): (soft) init'ed(this.mDate)
    //#pre[8] (Map getRecentWeblogEntries(int, String)): (soft) init'ed(this.mIsDaySpecified)
    //#pre[9] (Map getRecentWeblogEntries(int, String)): (soft) init'ed(this.mIsMonthSpecified)
    //#pre[10] (Map getRecentWeblogEntries(int, String)): (soft) init'ed(this.mLocale)
    //#pre[11] (Map getRecentWeblogEntries(int, String)): (soft) init'ed(this.mWebsite)
    //#pre[12] (Map getRecentWeblogEntries(int, String)): (soft) init'ed(this.urlStrategy)
    //#presumption(Map getRecentWeblogEntries(int, String)): java.util.Map:get(...)@406 != null
    //#presumption(Map getRecentWeblogEntries(int, String)): java.util.Map:keySet(...)@400 != null
    //#presumption(Map getRecentWeblogEntries(int, String)): org.apache.roller.weblogger.business.WeblogManager:getWeblogEntryObjectMap(...)@389 != null
    //#presumption(Map getRecentWeblogEntries(int, String)): org.apache.roller.weblogger.business.Weblogger:getWeblogManager(...)@389 != null
    //#presumption(Map getRecentWeblogEntries(int, String)): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@389 != null
    //#presumption(Map getRecentWeblogEntries(int, String)): org.apache.roller.weblogger.pojos.Weblog:getDefaultCategory(...)@362 != null
    //#presumption(Map getRecentWeblogEntries(int, String)): org.apache.roller.weblogger.pojos.WeblogCategory:getPath(...)@362 != null
    //#post(Map getRecentWeblogEntries(int, String)): (soft) return_value != null
    //#post(Map getRecentWeblogEntries(int, String)): possibly_updated(this.mFirstEntry)
    //#post(Map getRecentWeblogEntries(int, String)): possibly_updated(this.mLastEntry)
    //#post(Map getRecentWeblogEntries(int, String)): new HashMap(getRecentWeblogEntries#1) num objects == 1
    //#unanalyzed(Map getRecentWeblogEntries(int, String)): Effects-of-calling:java.util.List:size
    //#unanalyzed(Map getRecentWeblogEntries(int, String)): Effects-of-calling:java.util.Map:keySet
    //#unanalyzed(Map getRecentWeblogEntries(int, String)): Effects-of-calling:java.util.Set:size
    //#unanalyzed(Map getRecentWeblogEntries(int, String)): Effects-of-calling:java.util.Set:toArray
    //#unanalyzed(Map getRecentWeblogEntries(int, String)): Effects-of-calling:java.util.Map:get
    //#unanalyzed(Map getRecentWeblogEntries(int, String)): Effects-of-calling:java.util.List:get
    //#test_vector(Map getRecentWeblogEntries(int, String)): this.mCategory: Addr_Set{null}, Inverse{null}
    //#test_vector(Map getRecentWeblogEntries(int, String)): this.mDate: Inverse{null}, Addr_Set{null}
    //#test_vector(Map getRecentWeblogEntries(int, String)): this.mIsDaySpecified: {0}, {1}
    //#test_vector(Map getRecentWeblogEntries(int, String)): this.mIsMonthSpecified: {0}, {1}
    //#test_vector(Map getRecentWeblogEntries(int, String)): this.mWebsite: Addr_Set{null}, Inverse{null}
    //#test_vector(Map getRecentWeblogEntries(int, String)): java.lang.String:equals(...)@350: {0}, {1}
    //#test_vector(Map getRecentWeblogEntries(int, String)): java.lang.String:equals(...)@363: {0}, {1}
    //#test_vector(Map getRecentWeblogEntries(int, String)): java.util.Iterator:hasNext(...)@401: {0}, {1}
        Map ret = new HashMap();
        try {            
            // If request specifies a category, then use that
            String catParam = null;
            if (mCategory != null) {
                catParam = mCategory.getPath();
    //#OldWeblogPageModel.java:356: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogCategory:getPath()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Map getRecentWeblogEntries(int, String)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogCategory:getPath()
            } else if (catName != null) {
                // use category argument instead
                catParam = catName;
            } else if (mWebsite != null) // MAIN
            {
                catParam = mWebsite.getDefaultCategory().getPath();
    //#OldWeblogPageModel.java:362: Warning: method not available
    //#    -- call on WeblogCategory org.apache.roller.weblogger.pojos.Weblog:getDefaultCategory()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Map getRecentWeblogEntries(int, String)
    //#    unanalyzed callee: WeblogCategory org.apache.roller.weblogger.pojos.Weblog:getDefaultCategory()
    //#OldWeblogPageModel.java:362: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogCategory:getPath()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Map getRecentWeblogEntries(int, String)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogCategory:getPath()
                if (catParam.equals("/")) {
                    catParam = null;
                }
            }
            
            Calendar cal = null;
    //#OldWeblogPageModel.java:368: Warning: unused assignment
    //#    unused assignment into cal
    //#    severity: SUPPRESSED
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Map getRecentWeblogEntries(int, String)
    //#    Attribs:  Uncertain
            if (mWebsite != null) {
                TimeZone tz = mWebsite.getTimeZoneInstance();
    //#OldWeblogPageModel.java:370: Warning: method not available
    //#    -- call on TimeZone org.apache.roller.weblogger.pojos.Weblog:getTimeZoneInstance()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Map getRecentWeblogEntries(int, String)
    //#    unanalyzed callee: TimeZone org.apache.roller.weblogger.pojos.Weblog:getTimeZoneInstance()
                cal = Calendar.getInstance(tz);
            } else {
                cal = Calendar.getInstance();
            }
            int limit = mWebsite.getEntryDisplayCount();
    //#OldWeblogPageModel.java:375: ?null dereference
    //#    this.mWebsite != null
    //#    severity: MEDIUM
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Map getRecentWeblogEntries(int, String)
    //#    basic block: bb_14
    //#    assertion: this.mWebsite != null
    //#    VN: this.mWebsite
    //#    Expected: Inverse{null} or Invalid
    //#    Bad: Addr_Set{null}
    //#    Attribs:  Ptr  null in Bad
    //#OldWeblogPageModel.java:375: Warning: method not available
    //#    -- call on int org.apache.roller.weblogger.pojos.Weblog:getEntryDisplayCount()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Map getRecentWeblogEntries(int, String)
    //#    unanalyzed callee: int org.apache.roller.weblogger.pojos.Weblog:getEntryDisplayCount()
            Date startDate = null;
            Date endDate = mDate;
            if (endDate == null) endDate = new Date();
            if (mIsDaySpecified) { 
                // URL specified a specific day
                // so get entries for that day
                endDate = DateUtil.getEndOfDay(endDate, cal);
    //#OldWeblogPageModel.java:382: Warning: method not available
    //#    -- call on Date org.apache.roller.util.DateUtil:getEndOfDay(Date, Calendar)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Map getRecentWeblogEntries(int, String)
    //#    unanalyzed callee: Date org.apache.roller.util.DateUtil:getEndOfDay(Date, Calendar)
                startDate = DateUtil.getStartOfDay(endDate, cal); 
    //#OldWeblogPageModel.java:383: Warning: method not available
    //#    -- call on Date org.apache.roller.util.DateUtil:getStartOfDay(Date, Calendar)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Map getRecentWeblogEntries(int, String)
    //#    unanalyzed callee: Date org.apache.roller.util.DateUtil:getStartOfDay(Date, Calendar)
                // and get them ALL, no limit
                limit = -1;                  
            } else if (mIsMonthSpecified) {
                endDate = DateUtil.getEndOfMonth(endDate, cal);
    //#OldWeblogPageModel.java:387: Warning: method not available
    //#    -- call on Date org.apache.roller.util.DateUtil:getEndOfMonth(Date, Calendar)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Map getRecentWeblogEntries(int, String)
    //#    unanalyzed callee: Date org.apache.roller.util.DateUtil:getEndOfMonth(Date, Calendar)
            }
            Map mRet = WebloggerFactory.getWeblogger().getWeblogManager().getWeblogEntryObjectMap(
    //#OldWeblogPageModel.java:389: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Map getRecentWeblogEntries(int, String)
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#OldWeblogPageModel.java:389: Warning: method not available
    //#    -- call on WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Map getRecentWeblogEntries(int, String)
    //#    unanalyzed callee: WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
    //#OldWeblogPageModel.java:389: Warning: method not available
    //#    -- call on Map org.apache.roller.weblogger.business.WeblogManager:getWeblogEntryObjectMap(Weblog, Date, Date, String, List, String, String, int, int)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Map getRecentWeblogEntries(int, String)
    //#    unanalyzed callee: Map org.apache.roller.weblogger.business.WeblogManager:getWeblogEntryObjectMap(Weblog, Date, Date, String, List, String, String, int, int)
                    
                    mWebsite,
                    startDate,                    // startDate
                    endDate,                      // endDate
                    catParam,                     // catName
                    null,WeblogEntry.PUBLISHED,    // status
                    mLocale, 0, limit);  
            
            // need to wrap pojos
            java.util.Date key = null;
    //#OldWeblogPageModel.java:399: Warning: unused assignment
    //#    unused assignment into key
    //#    severity: SUPPRESSED
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Map getRecentWeblogEntries(int, String)
    //#    Attribs:  Uncertain
            Iterator days = mRet.keySet().iterator();
            while(days.hasNext()) {
                key = (java.util.Date)days.next();
                
                // now we need to go through each entry in a day and wrap
                List wrappedEntries = new ArrayList();
                List entries = (List) mRet.get(key);
                for(int i=0; i < entries.size(); i++) {
                    wrappedEntries.add(i,WeblogEntryWrapper.wrap((WeblogEntry)entries.get(i), urlStrategy));
    //#OldWeblogPageModel.java:408: Warning: method not available
    //#    -- call on WeblogEntryWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:wrap(WeblogEntry, URLStrategy)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Map getRecentWeblogEntries(int, String)
    //#    unanalyzed callee: WeblogEntryWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:wrap(WeblogEntry, URLStrategy)
                }
                mRet.put(key, wrappedEntries);
            }
            
            ret = mRet;
            
            setFirstAndLastEntries( ret );
        } catch (Exception e) {
            mLogger.error("PageModel getRecentWeblogEntries()", e);
    //#OldWeblogPageModel.java:417: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Map getRecentWeblogEntries(int, String)
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object, Throwable)
        }
        return ret;
    //#OldWeblogPageModel.java:419: end of method: Map org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getRecentWeblogEntries(int, String)
    }
    
    //------------------------------------------------------------------------
    
    /**
     * Pull the last WeblogEntryData out of the Map.
     * @param ret
     */
    private void setFirstAndLastEntries(Map days) {
        int numDays = days.keySet().size();
    //#OldWeblogPageModel.java:429: method: void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.setFirstAndLastEntries(Map)
    //#input(void setFirstAndLastEntries(Map)): days
    //#input(void setFirstAndLastEntries(Map)): this
    //#output(void setFirstAndLastEntries(Map)): this.mFirstEntry
    //#output(void setFirstAndLastEntries(Map)): this.mLastEntry
    //#pre[1] (void setFirstAndLastEntries(Map)): days != null
    //#presumption(void setFirstAndLastEntries(Map)): java.util.Map:get(...)@434 != null
    //#presumption(void setFirstAndLastEntries(Map)): java.util.Map:get(...)@441 != null
    //#presumption(void setFirstAndLastEntries(Map)): java.util.Map:keySet(...)@429 != null
    //#presumption(void setFirstAndLastEntries(Map)): java.util.Map:keySet(...)@433 != null
    //#presumption(void setFirstAndLastEntries(Map)): java.util.Set:toArray(...)@433 != null
    //#presumption(void setFirstAndLastEntries(Map)): keys.length@433 >= 1
    //#presumption(void setFirstAndLastEntries(Map)): java.util.Set:size(...)@429 <= keys.length@433
    //#post(void setFirstAndLastEntries(Map)): possibly_updated(this.mFirstEntry)
    //#post(void setFirstAndLastEntries(Map)): possibly_updated(this.mLastEntry)
    //#test_vector(void setFirstAndLastEntries(Map)): java.util.List:size(...)@435: {-2_147_483_648..0}, {1..4_294_967_295}
    //#test_vector(void setFirstAndLastEntries(Map)): java.util.List:size(...)@442: {-2_147_483_648..0}, {1..4_294_967_295}
    //#test_vector(void setFirstAndLastEntries(Map)): java.util.Set:size(...)@429: {-2_147_483_648..0}, {1..4_294_967_295}
        if (numDays > 0) // there is at least one day
        {
            // get first entry in map
            Object[] keys = days.keySet().toArray(new Object[numDays]);
            List vals = (List)days.get( keys[0] );
    //#OldWeblogPageModel.java:434: ?use of default init
    //#    init'ed(keys[0])
    //#    severity: SUPPRESSED
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: void setFirstAndLastEntries(Map)
    //#    basic block: bb_2
    //#    assertion: init'ed(keys[0])
    //#    VN: undefined
    //#    Expected: Univ-VN-Set
    //#    Bad: {Invalid}
    //#    Attribs:  Ptr  Bad only invalid
            int valSize = vals.size();
            if (valSize > 0) {
                mFirstEntry = (WeblogEntryWrapper)vals.get(0);
            }
            
            // get last entry in map
            vals = (List)days.get( keys[--numDays] );
    //#OldWeblogPageModel.java:441: ?use of default init
    //#    init'ed(keys[numDays])
    //#    severity: SUPPRESSED
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: void setFirstAndLastEntries(Map)
    //#    basic block: bb_4
    //#    assertion: init'ed(keys[numDays])
    //#    VN: undefined
    //#    Expected: Univ-VN-Set
    //#    Bad: {Invalid}
    //#    Attribs:  Ptr  Bad only invalid
            valSize = vals.size();
            if (valSize > 0) {
                mLastEntry = (WeblogEntryWrapper)vals.get(--valSize);
            }
        }
    }
    //#OldWeblogPageModel.java:447: end of method: void org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.setFirstAndLastEntries(Map)
    
    //------------------------------------------------------------------------
    
    /**
     * Returns list of recent weblog entries for the user and day specified in
     * the request, filtered by the category specified by the request, limited
     * by the 'maxEntries' argument, and sorted by reverse chronological order.
     *
     * <p>This method will look for a category name in the same places and
     * same order as does the getRecentWeblogEntries() method.</p>
     *
     * @param maxEntries   Maximum number of entries to be returned.
     * @param categoryName Only return entries from this category and it's
     *         subcategories. If null, returns all categories of entry.
     * @return List of WeblogEntryData objects in revese chronological order.
     */
    public List getRecentWeblogEntriesArray(int maxEntries, String categoryName) {
        if (VELOCITY_NULL.equals(categoryName)) categoryName = null;
    //#OldWeblogPageModel.java:465: method: List org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getRecentWeblogEntriesArray(int, String)
    //#input(List getRecentWeblogEntriesArray(int, String)): categoryName
    //#input(List getRecentWeblogEntriesArray(int, String)): mLogger
    //#input(List getRecentWeblogEntriesArray(int, String)): this
    //#input(List getRecentWeblogEntriesArray(int, String)): this.mCategory
    //#input(List getRecentWeblogEntriesArray(int, String)): this.mDate
    //#input(List getRecentWeblogEntriesArray(int, String)): this.mLocale
    //#input(List getRecentWeblogEntriesArray(int, String)): this.mWebsite
    //#input(List getRecentWeblogEntriesArray(int, String)): this.urlStrategy
    //#output(List getRecentWeblogEntriesArray(int, String)): new ArrayList(getRecentWeblogEntriesArray#1) num objects
    //#output(List getRecentWeblogEntriesArray(int, String)): new ArrayList(getRecentWeblogEntriesArray#3) num objects
    //#output(List getRecentWeblogEntriesArray(int, String)): return_value
    //#new obj(List getRecentWeblogEntriesArray(int, String)): new ArrayList(getRecentWeblogEntriesArray#1)
    //#new obj(List getRecentWeblogEntriesArray(int, String)): new ArrayList(getRecentWeblogEntriesArray#3)
    //#pre[2] (List getRecentWeblogEntriesArray(int, String)): (soft) mLogger != null
    //#pre[4] (List getRecentWeblogEntriesArray(int, String)): (soft) init'ed(this.mCategory)
    //#pre[5] (List getRecentWeblogEntriesArray(int, String)): (soft) init'ed(this.mDate)
    //#pre[6] (List getRecentWeblogEntriesArray(int, String)): (soft) init'ed(this.mLocale)
    //#pre[7] (List getRecentWeblogEntriesArray(int, String)): (soft) init'ed(this.mWebsite)
    //#pre[8] (List getRecentWeblogEntriesArray(int, String)): (soft) init'ed(this.urlStrategy)
    //#presumption(List getRecentWeblogEntriesArray(int, String)): org.apache.roller.weblogger.business.WeblogManager:getWeblogEntries(...)@490 != null
    //#presumption(List getRecentWeblogEntriesArray(int, String)): org.apache.roller.weblogger.business.Weblogger:getWeblogManager(...)@485 != null
    //#presumption(List getRecentWeblogEntriesArray(int, String)): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@485 != null
    //#presumption(List getRecentWeblogEntriesArray(int, String)): org.apache.roller.weblogger.pojos.Weblog:getDefaultCategory(...)@480 != null
    //#presumption(List getRecentWeblogEntriesArray(int, String)): org.apache.roller.weblogger.pojos.WeblogCategory:getPath(...)@480 != null
    //#post(List getRecentWeblogEntriesArray(int, String)): return_value == One-of{&new ArrayList(getRecentWeblogEntriesArray#3), &new ArrayList(getRecentWeblogEntriesArray#1)}
    //#post(List getRecentWeblogEntriesArray(int, String)): return_value in Addr_Set{&new ArrayList(getRecentWeblogEntriesArray#1),&new ArrayList(getRecentWeblogEntriesArray#3)}
    //#post(List getRecentWeblogEntriesArray(int, String)): new ArrayList(getRecentWeblogEntriesArray#1) num objects == 1
    //#post(List getRecentWeblogEntriesArray(int, String)): new ArrayList(getRecentWeblogEntriesArray#3) num objects <= 1
    //#test_vector(List getRecentWeblogEntriesArray(int, String)): this.mCategory: Addr_Set{null}, Inverse{null}
    //#test_vector(List getRecentWeblogEntriesArray(int, String)): this.mDate: Inverse{null}, Addr_Set{null}
    //#test_vector(List getRecentWeblogEntriesArray(int, String)): this.mWebsite: Addr_Set{null}, Inverse{null}
    //#test_vector(List getRecentWeblogEntriesArray(int, String)): java.lang.String:equals(...)@465: {0}, {1}
    //#test_vector(List getRecentWeblogEntriesArray(int, String)): java.lang.String:equals(...)@481: {0}, {1}
        List ret = new ArrayList();
        try {
            Date day = mDate;
            if (day == null) day = new Date();
            
            // If request specifies a category, then use that
            String catParam = null;
            if (mCategory != null) {
                catParam = mCategory.getPath();
    //#OldWeblogPageModel.java:474: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogCategory:getPath()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getRecentWeblogEntriesArray(int, String)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogCategory:getPath()
            } else if (categoryName != null) {
                // use category argument instead
                catParam = categoryName;
            } else if (mWebsite != null) // MAIN
            {
                catParam = mWebsite.getDefaultCategory().getPath();
    //#OldWeblogPageModel.java:480: Warning: method not available
    //#    -- call on WeblogCategory org.apache.roller.weblogger.pojos.Weblog:getDefaultCategory()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getRecentWeblogEntriesArray(int, String)
    //#    unanalyzed callee: WeblogCategory org.apache.roller.weblogger.pojos.Weblog:getDefaultCategory()
    //#OldWeblogPageModel.java:480: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogCategory:getPath()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getRecentWeblogEntriesArray(int, String)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogCategory:getPath()
                if (catParam.equals("/")) {
                    catParam = null;
                }
            }
            WeblogManager mgr = WebloggerFactory.getWeblogger().getWeblogManager();
    //#OldWeblogPageModel.java:485: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getRecentWeblogEntriesArray(int, String)
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#OldWeblogPageModel.java:485: Warning: method not available
    //#    -- call on WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getRecentWeblogEntriesArray(int, String)
    //#    unanalyzed callee: WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
            
            //ret = mgr.getRecentWeblogEntriesArray(
            //name, day, catParam, maxEntries, true );
            
            List mEntries = mgr.getWeblogEntries(
    //#OldWeblogPageModel.java:490: ?null dereference
    //#    this.mWebsite != null
    //#    severity: MEDIUM
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getRecentWeblogEntriesArray(int, String)
    //#    basic block: bb_13
    //#    assertion: this.mWebsite != null
    //#    VN: this.mWebsite
    //#    Expected: Inverse{null} or Invalid
    //#    Bad: Addr_Set{null}
    //#    Attribs:  Ptr  null in Bad
    //#OldWeblogPageModel.java:490: Warning: method not available
    //#    -- call on int org.apache.roller.weblogger.pojos.Weblog:getEntryDisplayCount()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getRecentWeblogEntriesArray(int, String)
    //#    unanalyzed callee: int org.apache.roller.weblogger.pojos.Weblog:getEntryDisplayCount()
    //#OldWeblogPageModel.java:490: Warning: method not available
    //#    -- call on List org.apache.roller.weblogger.business.WeblogManager:getWeblogEntries(Weblog, User, Date, Date, String, List, String, String, String, String, String, int, int)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getRecentWeblogEntriesArray(int, String)
    //#    unanalyzed callee: List org.apache.roller.weblogger.business.WeblogManager:getWeblogEntries(Weblog, User, Date, Date, String, List, String, String, String, String, String, int, int)
                    
                    mWebsite,
                    null,
                    null,                        // startDate
                    day,                         // endDate
                    catParam,                    // catName
                    null,WeblogEntry.PUBLISHED,   // status
                    null,                        // text
                    null,                        // sortby (null for pubTime)
                    null,
                    mLocale, 0, mWebsite.getEntryDisplayCount());    
            
            // wrap pojos
            ret = new ArrayList(mEntries.size());
            Iterator it = mEntries.iterator();
            int i=0;
            while(it.hasNext()) {
                ret.add(i,WeblogEntryWrapper.wrap((WeblogEntry) it.next(), urlStrategy));
    //#OldWeblogPageModel.java:508: Warning: method not available
    //#    -- call on WeblogEntryWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:wrap(WeblogEntry, URLStrategy)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getRecentWeblogEntriesArray(int, String)
    //#    unanalyzed callee: WeblogEntryWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:wrap(WeblogEntry, URLStrategy)
                i++;
    //#OldWeblogPageModel.java:509: ?overflow
    //#    i in -2_147_483_649..4_294_967_294
    //#    severity: LOW
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getRecentWeblogEntriesArray(int, String)
    //#    basic block: bb_15
    //#    assertion: i in -2_147_483_649..4_294_967_294
    //#    VN: i + 1
    //#    Expected: {-2_147_483_648..4_294_967_295, Invalid}
    //#    Bad: {4_294_967_296}
    //#    Attribs:  Int  Bad singleton  Bad > Exp
            }
        } catch (Exception e) {
            mLogger.error("PageModel getRecentWeblogEntries()", e);
    //#OldWeblogPageModel.java:512: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getRecentWeblogEntriesArray(int, String)
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object, Throwable)
        }
        return ret;
    //#OldWeblogPageModel.java:514: end of method: List org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getRecentWeblogEntriesArray(int, String)
    }
    
    //------------------------------------------------------------------------
    
    /** Encapsulates RefererManager **/
    public List getReferers(String date) {
        date = date.trim();
    //#OldWeblogPageModel.java:521: method: List org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getReferers(String)
    //#input(List getReferers(String)): "PageModel getReferersToDate() fails with URL"._tainted
    //#input(List getReferers(String)): date
    //#input(List getReferers(String)): mLogger
    //#input(List getReferers(String)): org.apache.roller.weblogger.pojos.WeblogPermission.ADMIN
    //#input(List getReferers(String)): this
    //#input(List getReferers(String)): this.mRefererMgr
    //#input(List getReferers(String)): this.mRequest
    //#input(List getReferers(String)): this.mWebsite
    //#input(List getReferers(String)): this.urlStrategy
    //#output(List getReferers(String)): new ArrayList(getReferers#1) num objects
    //#output(List getReferers(String)): return_value
    //#new obj(List getReferers(String)): new ArrayList(getReferers#1)
    //#pre[1] (List getReferers(String)): date != null
    //#pre[2] (List getReferers(String)): (soft) mLogger != null
    //#pre[4] (List getReferers(String)): (soft) this.mRefererMgr != null
    //#pre[5] (List getReferers(String)): (soft) this.mRequest != null
    //#pre[6] (List getReferers(String)): (soft) init'ed(this.mWebsite)
    //#pre[7] (List getReferers(String)): (soft) init'ed(this.urlStrategy)
    //#presumption(List getReferers(String)): java.util.Iterator:next(...)@530 != null
    //#presumption(List getReferers(String)): org.apache.roller.weblogger.business.referrers.RefererManager:getReferersToDate(...)@524 != null
    //#presumption(List getReferers(String)): init'ed(org.apache.roller.weblogger.pojos.WeblogPermission.ADMIN)
    //#presumption(List getReferers(String)): org.apache.roller.weblogger.pojos.WeblogReferrer:getVisible(...)@535 != null
    //#presumption(List getReferers(String)): org.apache.roller.weblogger.pojos.WeblogReferrer:getWebsite(...)@535 != null
    //#presumption(List getReferers(String)): org.apache.roller.weblogger.ui.core.RollerSession:getRollerSession(...)@526 != null
    //#post(List getReferers(String)): return_value == &new ArrayList(getReferers#1)
    //#post(List getReferers(String)): new ArrayList(getReferers#1) num objects == 1
    //#test_vector(List getReferers(String)): java.lang.Boolean:booleanValue(...)@535: {1}, {0}
    //#test_vector(List getReferers(String)): org.apache.commons.lang.StringUtils:isNotEmpty(...)@533: {0}, {1}
    //#test_vector(List getReferers(String)): org.apache.roller.weblogger.pojos.Weblog:hasUserPermissions(...)@535: {0}, {1}
        ArrayList referers = new ArrayList();
        try {
            List refs =
    //#OldWeblogPageModel.java:524: Warning: method not available
    //#    -- call on List org.apache.roller.weblogger.business.referrers.RefererManager:getReferersToDate(Weblog, String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getReferers(String)
    //#    unanalyzed callee: List org.apache.roller.weblogger.business.referrers.RefererManager:getReferersToDate(Weblog, String)
                    mRefererMgr.getReferersToDate(mWebsite, date);
            RollerSession rses =
    //#OldWeblogPageModel.java:526: Warning: method not available
    //#    -- call on RollerSession org.apache.roller.weblogger.ui.core.RollerSession:getRollerSession(HttpServletRequest)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getReferers(String)
    //#    unanalyzed callee: RollerSession org.apache.roller.weblogger.ui.core.RollerSession:getRollerSession(HttpServletRequest)
                    RollerSession.getRollerSession(mRequest);
            
            for (Iterator rdItr = refs.iterator(); rdItr.hasNext();) {
                WeblogReferrer referer = (WeblogReferrer) rdItr.next();
                String title =referer.getTitle();
    //#OldWeblogPageModel.java:531: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogReferrer:getTitle()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getReferers(String)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogReferrer:getTitle()
                String excerpt = referer.getExcerpt();
    //#OldWeblogPageModel.java:532: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogReferrer:getExcerpt()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getReferers(String)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogReferrer:getExcerpt()
                if (   StringUtils.isNotEmpty(title)
    //#OldWeblogPageModel.java:533: Warning: method not available
    //#    -- call on bool org.apache.commons.lang.StringUtils:isNotEmpty(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getReferers(String)
    //#    unanalyzed callee: bool org.apache.commons.lang.StringUtils:isNotEmpty(String)
                && StringUtils.isNotEmpty(excerpt) ) {
                    if (referer.getVisible().booleanValue() 
    //#OldWeblogPageModel.java:535: Warning: method not available
    //#    -- call on Boolean org.apache.roller.weblogger.pojos.WeblogReferrer:getVisible()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getReferers(String)
    //#    unanalyzed callee: Boolean org.apache.roller.weblogger.pojos.WeblogReferrer:getVisible()
    //#OldWeblogPageModel.java:535: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.pojos.WeblogReferrer:getWebsite()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getReferers(String)
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.pojos.WeblogReferrer:getWebsite()
    //#OldWeblogPageModel.java:535: Warning: method not available
    //#    -- call on User org.apache.roller.weblogger.ui.core.RollerSession:getAuthenticatedUser()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getReferers(String)
    //#    unanalyzed callee: User org.apache.roller.weblogger.ui.core.RollerSession:getAuthenticatedUser()
    //#OldWeblogPageModel.java:535: Warning: method not available
    //#    -- call on bool org.apache.roller.weblogger.pojos.Weblog:hasUserPermissions(User, short)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getReferers(String)
    //#    unanalyzed callee: bool org.apache.roller.weblogger.pojos.Weblog:hasUserPermissions(User, short)
                     || referer.getWebsite().hasUserPermissions(rses.getAuthenticatedUser(), WeblogPermission.ADMIN) ) { 
                        referers.add(WeblogReferrerWrapper.wrap(referer, urlStrategy));
    //#OldWeblogPageModel.java:537: Warning: method not available
    //#    -- call on WeblogReferrerWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogReferrerWrapper:wrap(WeblogReferrer, URLStrategy)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getReferers(String)
    //#    unanalyzed callee: WeblogReferrerWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogReferrerWrapper:wrap(WeblogReferrer, URLStrategy)
                    }
                }
            }
            
        } catch (Exception e) {
            mLogger.error("PageModel getReferersToDate() fails with URL"
    //#OldWeblogPageModel.java:543: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getReferers(String)
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object, Throwable)
                    + mRequest.getRequestURL(), e);
        }
        return referers;
    //#OldWeblogPageModel.java:546: end of method: List org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getReferers(String)
    }
    
    /** Encapsulates RefererManager **/
    public List getEntryReferers(WeblogEntryWrapper entry) {
        ArrayList referers = new ArrayList();
    //#OldWeblogPageModel.java:551: method: List org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getEntryReferers(WeblogEntryWrapper)
    //#input(List getEntryReferers(WeblogEntryWrapper)): "PageModel getReferersToDate() fails with URL"._tainted
    //#input(List getEntryReferers(WeblogEntryWrapper)): entry
    //#input(List getEntryReferers(WeblogEntryWrapper)): mLogger
    //#input(List getEntryReferers(WeblogEntryWrapper)): org.apache.roller.weblogger.pojos.WeblogPermission.ADMIN
    //#input(List getEntryReferers(WeblogEntryWrapper)): this
    //#input(List getEntryReferers(WeblogEntryWrapper)): this.mRefererMgr
    //#input(List getEntryReferers(WeblogEntryWrapper)): this.mRequest
    //#input(List getEntryReferers(WeblogEntryWrapper)): this.urlStrategy
    //#output(List getEntryReferers(WeblogEntryWrapper)): new ArrayList(getEntryReferers#1) num objects
    //#output(List getEntryReferers(WeblogEntryWrapper)): return_value
    //#new obj(List getEntryReferers(WeblogEntryWrapper)): new ArrayList(getEntryReferers#1)
    //#pre[1] (List getEntryReferers(WeblogEntryWrapper)): (soft) entry != null
    //#pre[2] (List getEntryReferers(WeblogEntryWrapper)): (soft) mLogger != null
    //#pre[4] (List getEntryReferers(WeblogEntryWrapper)): (soft) this.mRefererMgr != null
    //#pre[5] (List getEntryReferers(WeblogEntryWrapper)): (soft) this.mRequest != null
    //#pre[6] (List getEntryReferers(WeblogEntryWrapper)): (soft) init'ed(this.urlStrategy)
    //#presumption(List getEntryReferers(WeblogEntryWrapper)): java.util.Iterator:next(...)@558 != null
    //#presumption(List getEntryReferers(WeblogEntryWrapper)): org.apache.roller.weblogger.business.referrers.RefererManager:getReferersToEntry(...)@553 != null
    //#presumption(List getEntryReferers(WeblogEntryWrapper)): init'ed(org.apache.roller.weblogger.pojos.WeblogPermission.ADMIN)
    //#presumption(List getEntryReferers(WeblogEntryWrapper)): org.apache.roller.weblogger.pojos.WeblogReferrer:getVisible(...)@563 != null
    //#presumption(List getEntryReferers(WeblogEntryWrapper)): org.apache.roller.weblogger.pojos.WeblogReferrer:getWebsite(...)@563 != null
    //#presumption(List getEntryReferers(WeblogEntryWrapper)): org.apache.roller.weblogger.ui.core.RollerSession:getRollerSession(...)@554 != null
    //#post(List getEntryReferers(WeblogEntryWrapper)): return_value == &new ArrayList(getEntryReferers#1)
    //#post(List getEntryReferers(WeblogEntryWrapper)): new ArrayList(getEntryReferers#1) num objects == 1
    //#test_vector(List getEntryReferers(WeblogEntryWrapper)): java.lang.Boolean:booleanValue(...)@563: {1}, {0}
    //#test_vector(List getEntryReferers(WeblogEntryWrapper)): org.apache.commons.lang.StringUtils:isNotEmpty(...)@561: {0}, {1}
    //#test_vector(List getEntryReferers(WeblogEntryWrapper)): org.apache.roller.weblogger.pojos.Weblog:hasUserPermissions(...)@563: {0}, {1}
        try {
            List refs = mRefererMgr.getReferersToEntry(entry.getId());
    //#OldWeblogPageModel.java:553: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:getId()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getEntryReferers(WeblogEntryWrapper)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:getId()
    //#OldWeblogPageModel.java:553: Warning: method not available
    //#    -- call on List org.apache.roller.weblogger.business.referrers.RefererManager:getReferersToEntry(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getEntryReferers(WeblogEntryWrapper)
    //#    unanalyzed callee: List org.apache.roller.weblogger.business.referrers.RefererManager:getReferersToEntry(String)
            RollerSession rses =
    //#OldWeblogPageModel.java:554: Warning: method not available
    //#    -- call on RollerSession org.apache.roller.weblogger.ui.core.RollerSession:getRollerSession(HttpServletRequest)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getEntryReferers(WeblogEntryWrapper)
    //#    unanalyzed callee: RollerSession org.apache.roller.weblogger.ui.core.RollerSession:getRollerSession(HttpServletRequest)
               RollerSession.getRollerSession(mRequest);
            
            for (Iterator rdItr = refs.iterator(); rdItr.hasNext();) {
                WeblogReferrer referer = (WeblogReferrer) rdItr.next();
                String title =referer.getTitle();
    //#OldWeblogPageModel.java:559: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogReferrer:getTitle()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getEntryReferers(WeblogEntryWrapper)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogReferrer:getTitle()
                String excerpt = referer.getExcerpt();
    //#OldWeblogPageModel.java:560: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogReferrer:getExcerpt()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getEntryReferers(WeblogEntryWrapper)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogReferrer:getExcerpt()
                if (   StringUtils.isNotEmpty(title)
    //#OldWeblogPageModel.java:561: Warning: method not available
    //#    -- call on bool org.apache.commons.lang.StringUtils:isNotEmpty(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getEntryReferers(WeblogEntryWrapper)
    //#    unanalyzed callee: bool org.apache.commons.lang.StringUtils:isNotEmpty(String)
                && StringUtils.isNotEmpty(excerpt) ) {
                    if (referer.getVisible().booleanValue()
    //#OldWeblogPageModel.java:563: Warning: method not available
    //#    -- call on Boolean org.apache.roller.weblogger.pojos.WeblogReferrer:getVisible()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getEntryReferers(WeblogEntryWrapper)
    //#    unanalyzed callee: Boolean org.apache.roller.weblogger.pojos.WeblogReferrer:getVisible()
    //#OldWeblogPageModel.java:563: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.pojos.WeblogReferrer:getWebsite()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getEntryReferers(WeblogEntryWrapper)
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.pojos.WeblogReferrer:getWebsite()
    //#OldWeblogPageModel.java:563: Warning: method not available
    //#    -- call on User org.apache.roller.weblogger.ui.core.RollerSession:getAuthenticatedUser()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getEntryReferers(WeblogEntryWrapper)
    //#    unanalyzed callee: User org.apache.roller.weblogger.ui.core.RollerSession:getAuthenticatedUser()
    //#OldWeblogPageModel.java:563: Warning: method not available
    //#    -- call on bool org.apache.roller.weblogger.pojos.Weblog:hasUserPermissions(User, short)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getEntryReferers(WeblogEntryWrapper)
    //#    unanalyzed callee: bool org.apache.roller.weblogger.pojos.Weblog:hasUserPermissions(User, short)
                    ||  referer.getWebsite().hasUserPermissions(rses.getAuthenticatedUser(), WeblogPermission.ADMIN) ) {
                        referers.add(WeblogReferrerWrapper.wrap(referer, urlStrategy));
    //#OldWeblogPageModel.java:565: Warning: method not available
    //#    -- call on WeblogReferrerWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogReferrerWrapper:wrap(WeblogReferrer, URLStrategy)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getEntryReferers(WeblogEntryWrapper)
    //#    unanalyzed callee: WeblogReferrerWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogReferrerWrapper:wrap(WeblogReferrer, URLStrategy)
                    }
                }
            }
            
        } catch (Exception e) {
            mLogger.error("PageModel getReferersToDate() fails with URL"
    //#OldWeblogPageModel.java:571: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getEntryReferers(WeblogEntryWrapper)
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object, Throwable)
                    + mRequest.getRequestURL(), e);
        }
        return referers;
    //#OldWeblogPageModel.java:574: end of method: List org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getEntryReferers(WeblogEntryWrapper)
    }
    
    //------------------------------------------------------------------------
    
    /** Encapsulates RefererManager */
    public List getTodaysReferers() {
         return mWebsite.getTodaysReferrers();
    //#OldWeblogPageModel.java:581: method: List org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getTodaysReferers()
    //#OldWeblogPageModel.java:581: Warning: method not available
    //#    -- call on List org.apache.roller.weblogger.pojos.Weblog:getTodaysReferrers()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getTodaysReferers()
    //#    unanalyzed callee: List org.apache.roller.weblogger.pojos.Weblog:getTodaysReferrers()
    //#input(List getTodaysReferers()): this
    //#input(List getTodaysReferers()): this.mWebsite
    //#output(List getTodaysReferers()): return_value
    //#pre[2] (List getTodaysReferers()): this.mWebsite != null
    //#post(List getTodaysReferers()): init'ed(return_value)
    //#OldWeblogPageModel.java:581: end of method: List org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getTodaysReferers()
    }
    
    //------------------------------------------------------------------------
    
    /** Encapsulates RefererManager */
    public int getTotalHits() {
        return mWebsite.getTodaysHits();
    //#OldWeblogPageModel.java:588: method: int org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getTotalHits()
    //#OldWeblogPageModel.java:588: Warning: method not available
    //#    -- call on int org.apache.roller.weblogger.pojos.Weblog:getTodaysHits()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: int getTotalHits()
    //#    unanalyzed callee: int org.apache.roller.weblogger.pojos.Weblog:getTodaysHits()
    //#input(int getTotalHits()): this
    //#input(int getTotalHits()): this.mWebsite
    //#output(int getTotalHits()): return_value
    //#pre[2] (int getTotalHits()): this.mWebsite != null
    //#post(int getTotalHits()): init'ed(return_value)
    //#OldWeblogPageModel.java:588: end of method: int org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getTotalHits()
    }
    
    //------------------------------------------------------------------------
    /**
     * Returns most recent update time of collection of weblog entries.
     * @param weblogEntries Collection of weblog entries.
     * @return Most recent update time.
     */
    public static Date getUpdateTime( ArrayList weblogEntries ) {
        Date updateTime = null;
    //#OldWeblogPageModel.java:598: method: Date org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getUpdateTime(ArrayList)
    //#input(Date getUpdateTime(ArrayList)): weblogEntries
    //#output(Date getUpdateTime(ArrayList)): return_value
    //#pre[1] (Date getUpdateTime(ArrayList)): weblogEntries != null
    //#presumption(Date getUpdateTime(ArrayList)): java.util.ArrayList:iterator(...)@599 != null
    //#presumption(Date getUpdateTime(ArrayList)): java.util.Iterator:next(...)@602 != null
    //#post(Date getUpdateTime(ArrayList)): init'ed(return_value)
    //#test_vector(Date getUpdateTime(ArrayList)): java.util.Date:before(...)@607: {0}, {1}
    //#test_vector(Date getUpdateTime(ArrayList)): java.util.Iterator:hasNext(...)@600: {0}, {1}
        Iterator iter = weblogEntries.iterator();
        while (iter.hasNext()) {
            // NOTE: this will need to be WeblogEntryDataWrapper
            WeblogEntry wd = (WeblogEntry)iter.next();
            if ( updateTime == null ) {
                updateTime = wd.getUpdateTime();
    //#OldWeblogPageModel.java:604: Warning: method not available
    //#    -- call on Timestamp org.apache.roller.weblogger.pojos.WeblogEntry:getUpdateTime()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Date getUpdateTime(ArrayList)
    //#    unanalyzed callee: Timestamp org.apache.roller.weblogger.pojos.WeblogEntry:getUpdateTime()
            }
            //else if ( updateTime.compareTo(wd.getUpdateTime()) < 0 )
            else if (updateTime.before( wd.getUpdateTime() )) {
    //#OldWeblogPageModel.java:607: Warning: method not available
    //#    -- call on Timestamp org.apache.roller.weblogger.pojos.WeblogEntry:getUpdateTime()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Date getUpdateTime(ArrayList)
    //#    unanalyzed callee: Timestamp org.apache.roller.weblogger.pojos.WeblogEntry:getUpdateTime()
                updateTime = wd.getUpdateTime();
    //#OldWeblogPageModel.java:608: Warning: method not available
    //#    -- call on Timestamp org.apache.roller.weblogger.pojos.WeblogEntry:getUpdateTime()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Date getUpdateTime(ArrayList)
    //#    unanalyzed callee: Timestamp org.apache.roller.weblogger.pojos.WeblogEntry:getUpdateTime()
            }
        }
        return updateTime;
    //#OldWeblogPageModel.java:611: end of method: Date org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getUpdateTime(ArrayList)
    }
    
    //------------------------------------------------------------------------
    
    /** Encapsulates WeblogManager.getWeblogCategories() */
    public Set getWeblogCategories(String categoryName) {
        Set ret = null;
    //#OldWeblogPageModel.java:618: method: Set org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getWeblogCategories(String)
    //#OldWeblogPageModel.java:618: Warning: unused assignment
    //#    unused assignment into ret
    //#    severity: SUPPRESSED
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Set getWeblogCategories(String)
    //#    Attribs:  Uncertain
    //#input(Set getWeblogCategories(String)): categoryName
    //#input(Set getWeblogCategories(String)): mLogger
    //#input(Set getWeblogCategories(String)): this
    //#input(Set getWeblogCategories(String)): this.mCategories
    //#input(Set getWeblogCategories(String)): this.mWeblogMgr
    //#input(Set getWeblogCategories(String)): this.mWebsite
    //#input(Set getWeblogCategories(String)): this.urlStrategy
    //#output(Set getWeblogCategories(String)): new HashSet(getWeblogCategories#1) num objects
    //#output(Set getWeblogCategories(String)): return_value
    //#new obj(Set getWeblogCategories(String)): new HashSet(getWeblogCategories#1)
    //#pre[4] (Set getWeblogCategories(String)): this.mCategories != null
    //#pre[2] (Set getWeblogCategories(String)): (soft) mLogger != null
    //#pre[5] (Set getWeblogCategories(String)): (soft) this.mWeblogMgr != null
    //#pre[6] (Set getWeblogCategories(String)): (soft) this.mWebsite != null
    //#pre[7] (Set getWeblogCategories(String)): (soft) init'ed(this.urlStrategy)
    //#presumption(Set getWeblogCategories(String)): org.apache.roller.weblogger.business.WeblogManager:getWeblogCategoryByPath(...)@632 != null
    //#presumption(Set getWeblogCategories(String)): org.apache.roller.weblogger.pojos.Weblog:getDefaultCategory(...)@635 != null
    //#presumption(Set getWeblogCategories(String)): org.apache.roller.weblogger.pojos.WeblogCategory:getWeblogCategories(...)@638 != null
    //#post(Set getWeblogCategories(String)): init'ed(return_value)
    //#post(Set getWeblogCategories(String)): new HashSet(getWeblogCategories#1) num objects <= 1
    //#test_vector(Set getWeblogCategories(String)): java.lang.String:equals(...)@619: {0}, {1}
    //#test_vector(Set getWeblogCategories(String)): java.util.Iterator:hasNext(...)@644: {0}, {1}
        if (VELOCITY_NULL.equals(categoryName)) categoryName = null;
        
        // Make sure we have not already fetched this category.
        if (categoryName != null) {
            ret = (Set)mCategories.get(categoryName);
        } else {
            ret = (Set)mCategories.get("zzz_null_zzz");
        }
        
        if (null == ret) {
            try {
                WeblogCategory category = null;
    //#OldWeblogPageModel.java:630: Warning: unused assignment
    //#    unused assignment into category
    //#    severity: SUPPRESSED
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Set getWeblogCategories(String)
    //#    Attribs:  Uncertain
                if (categoryName != null) {
                    category = mWeblogMgr.getWeblogCategoryByPath(
    //#OldWeblogPageModel.java:632: Warning: method not available
    //#    -- call on WeblogCategory org.apache.roller.weblogger.business.WeblogManager:getWeblogCategoryByPath(Weblog, String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Set getWeblogCategories(String)
    //#    unanalyzed callee: WeblogCategory org.apache.roller.weblogger.business.WeblogManager:getWeblogCategoryByPath(Weblog, String)
                            mWebsite, categoryName);
                } else {
                    category = mWebsite.getDefaultCategory();
    //#OldWeblogPageModel.java:635: Warning: method not available
    //#    -- call on WeblogCategory org.apache.roller.weblogger.pojos.Weblog:getDefaultCategory()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Set getWeblogCategories(String)
    //#    unanalyzed callee: WeblogCategory org.apache.roller.weblogger.pojos.Weblog:getDefaultCategory()
                }
                
                Set mRet = category.getWeblogCategories();
    //#OldWeblogPageModel.java:638: Warning: method not available
    //#    -- call on Set org.apache.roller.weblogger.pojos.WeblogCategory:getWeblogCategories()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Set getWeblogCategories(String)
    //#    unanalyzed callee: Set org.apache.roller.weblogger.pojos.WeblogCategory:getWeblogCategories()
                
                // wrap pojos
                ret = new HashSet(mRet.size());
                Iterator it = mRet.iterator();
                int i=0;
                while(it.hasNext()) {
                    ret.add(WeblogCategoryWrapper.wrap((WeblogCategory)it.next(), urlStrategy));
    //#OldWeblogPageModel.java:645: Warning: method not available
    //#    -- call on WeblogCategoryWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogCategoryWrapper:wrap(WeblogCategory, URLStrategy)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Set getWeblogCategories(String)
    //#    unanalyzed callee: WeblogCategoryWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogCategoryWrapper:wrap(WeblogCategory, URLStrategy)
                    i++;
    //#OldWeblogPageModel.java:646: ?overflow
    //#    i in -2_147_483_649..4_294_967_294
    //#    severity: LOW
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Set getWeblogCategories(String)
    //#    basic block: bb_13
    //#    assertion: i in -2_147_483_649..4_294_967_294
    //#    VN: i + 1
    //#    Expected: {-2_147_483_648..4_294_967_295, Invalid}
    //#    Bad: {4_294_967_296}
    //#    Attribs:  Int  Bad singleton  Bad > Exp
                }
                if (categoryName != null) {
                    mCategories.put(categoryName, ret);
                } else {
                    mCategories.put("zzz_null_zzz", ret);
                }
            } catch (WebloggerException e) {
                mLogger.error(e);
    //#OldWeblogPageModel.java:654: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: Set getWeblogCategories(String)
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object)
            }
        }
        return ret;
    //#OldWeblogPageModel.java:657: end of method: Set org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getWeblogCategories(String)
    }
    
    //------------------------------------------------------------------------
    
    /** Encapsulates RollerRequest.getWeblogEntry() */
    public WeblogEntryWrapper getWeblogEntry() {
        
        if(mEntry != null && mEntry.getStatus().equals(WeblogEntry.PUBLISHED))
    //#OldWeblogPageModel.java:665: method: WeblogEntryWrapper org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getWeblogEntry()
    //#OldWeblogPageModel.java:665: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogEntry:getStatus()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogEntryWrapper getWeblogEntry()
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogEntry:getStatus()
    //#input(WeblogEntryWrapper getWeblogEntry()): this
    //#input(WeblogEntryWrapper getWeblogEntry()): this.mEntry
    //#input(WeblogEntryWrapper getWeblogEntry()): this.urlStrategy
    //#output(WeblogEntryWrapper getWeblogEntry()): return_value
    //#pre[2] (WeblogEntryWrapper getWeblogEntry()): init'ed(this.mEntry)
    //#pre[3] (WeblogEntryWrapper getWeblogEntry()): (soft) init'ed(this.urlStrategy)
    //#presumption(WeblogEntryWrapper getWeblogEntry()): org.apache.roller.weblogger.pojos.WeblogEntry:getStatus(...)@665 != null
    //#post(WeblogEntryWrapper getWeblogEntry()): init'ed(return_value)
    //#test_vector(WeblogEntryWrapper getWeblogEntry()): this.mEntry: Addr_Set{null}, Inverse{null}
    //#test_vector(WeblogEntryWrapper getWeblogEntry()): java.lang.String:equals(...)@665: {0}, {1}
            return WeblogEntryWrapper.wrap(mEntry, urlStrategy);
    //#OldWeblogPageModel.java:666: Warning: method not available
    //#    -- call on WeblogEntryWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:wrap(WeblogEntry, URLStrategy)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogEntryWrapper getWeblogEntry()
    //#    unanalyzed callee: WeblogEntryWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:wrap(WeblogEntry, URLStrategy)
        else
            return null;
    //#OldWeblogPageModel.java:668: end of method: WeblogEntryWrapper org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getWeblogEntry()
    }
    
    //------------------------------------------------------------------------
    
    /**
     * Get the next occurring Entry.
     */
    public WeblogEntryWrapper getNextEntry() {
        WeblogEntryWrapper currentEntry = getWeblogEntry();
    //#OldWeblogPageModel.java:677: method: WeblogEntryWrapper org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getNextEntry()
    //#input(WeblogEntryWrapper getNextEntry()): __Descendant_Table[org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldWeblogPageModel]
    //#input(WeblogEntryWrapper getNextEntry()): __Descendant_Table[others]
    //#input(WeblogEntryWrapper getNextEntry()): __Dispatch_Table.getWeblogEntry()Lorg/apache/roller/weblogger/pojos/wrapper/WeblogEntryWrapper;
    //#input(WeblogEntryWrapper getNextEntry()): mLogger
    //#input(WeblogEntryWrapper getNextEntry()): this
    //#input(WeblogEntryWrapper getNextEntry()): this.__Tag
    //#input(WeblogEntryWrapper getNextEntry()): this.mCategory
    //#input(WeblogEntryWrapper getNextEntry()): this.mEntry
    //#input(WeblogEntryWrapper getNextEntry()): this.mFirstEntry
    //#input(WeblogEntryWrapper getNextEntry()): this.mLocale
    //#input(WeblogEntryWrapper getNextEntry()): this.mNextEntry
    //#input(WeblogEntryWrapper getNextEntry()): this.mWeblogMgr
    //#input(WeblogEntryWrapper getNextEntry()): this.urlStrategy
    //#output(WeblogEntryWrapper getNextEntry()): return_value
    //#output(WeblogEntryWrapper getNextEntry()): this.mNextEntry
    //#pre[2] (WeblogEntryWrapper getNextEntry()): init'ed(this.mNextEntry)
    //#pre[4] (WeblogEntryWrapper getNextEntry()): this.__Tag == org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldWeblogPageModel
    //#pre[6] (WeblogEntryWrapper getNextEntry()): init'ed(this.mEntry)
    //#pre[7] (WeblogEntryWrapper getNextEntry()): init'ed(this.mFirstEntry)
    //#pre[1] (WeblogEntryWrapper getNextEntry()): (soft) mLogger != null
    //#pre[5] (WeblogEntryWrapper getNextEntry()): (soft) init'ed(this.mCategory)
    //#pre[8] (WeblogEntryWrapper getNextEntry()): (soft) init'ed(this.mLocale)
    //#pre[9] (WeblogEntryWrapper getNextEntry()): (soft) this.mWeblogMgr != null
    //#pre[10] (WeblogEntryWrapper getNextEntry()): (soft) init'ed(this.urlStrategy)
    //#presumption(WeblogEntryWrapper getNextEntry()): org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:getPubTime(...)@692 != null
    //#post(WeblogEntryWrapper getNextEntry()): init'ed(return_value)
    //#post(WeblogEntryWrapper getNextEntry()): this.mNextEntry == return_value
    //#unanalyzed(WeblogEntryWrapper getNextEntry()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:getStatus
    //#unanalyzed(WeblogEntryWrapper getNextEntry()): Effects-of-calling:java.lang.String:equals
    //#unanalyzed(WeblogEntryWrapper getNextEntry()): Effects-of-calling:org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:wrap
    //#test_vector(WeblogEntryWrapper getNextEntry()): this.mNextEntry: Inverse{null}, Addr_Set{null}
    //#test_vector(WeblogEntryWrapper getNextEntry()): this.mCategory: Addr_Set{null}, Inverse{null}
    //#test_vector(WeblogEntryWrapper getNextEntry()): this.mFirstEntry: Addr_Set{null}, Inverse{null}
    //#test_vector(WeblogEntryWrapper getNextEntry()): java.sql.Timestamp:after(...)@692: {0}, {1}
    //#test_vector(WeblogEntryWrapper getNextEntry()): org.apache.roller.weblogger.business.WeblogManager:getNextEntry(...)@685: Addr_Set{null}, Inverse{null}
        if (mFirstEntry != null) currentEntry = mFirstEntry;
        if (mNextEntry == null && currentEntry != null) {
            String catName = null;
            if (mCategory != null) {
                catName = mCategory.getName();
    //#OldWeblogPageModel.java:682: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogCategory:getName()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogEntryWrapper getNextEntry()
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogCategory:getName()
            }
            try {
                WeblogEntry nextEntry =
    //#OldWeblogPageModel.java:685: Warning: method not available
    //#    -- call on WeblogEntry org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:getPojo()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogEntryWrapper getNextEntry()
    //#    unanalyzed callee: WeblogEntry org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:getPojo()
    //#OldWeblogPageModel.java:685: Warning: method not available
    //#    -- call on WeblogEntry org.apache.roller.weblogger.business.WeblogManager:getNextEntry(WeblogEntry, String, String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogEntryWrapper getNextEntry()
    //#    unanalyzed callee: WeblogEntry org.apache.roller.weblogger.business.WeblogManager:getNextEntry(WeblogEntry, String, String)
                        mWeblogMgr.getNextEntry(currentEntry.getPojo(), catName, mLocale);
                
                if(nextEntry != null)
                    mNextEntry = WeblogEntryWrapper.wrap(nextEntry, urlStrategy);
    //#OldWeblogPageModel.java:689: Warning: method not available
    //#    -- call on WeblogEntryWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:wrap(WeblogEntry, URLStrategy)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogEntryWrapper getNextEntry()
    //#    unanalyzed callee: WeblogEntryWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:wrap(WeblogEntry, URLStrategy)
                
                // make sure that mNextEntry is not published to future
                if (mNextEntry != null &&
    //#OldWeblogPageModel.java:692: Warning: method not available
    //#    -- call on Timestamp org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:getPubTime()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogEntryWrapper getNextEntry()
    //#    unanalyzed callee: Timestamp org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:getPubTime()
                        mNextEntry.getPubTime().after( new Date() )) {
                    mNextEntry = null;
                }
            } catch (WebloggerException e) {
                mLogger.error("PageModel.getNextEntry)", e);
    //#OldWeblogPageModel.java:697: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogEntryWrapper getNextEntry()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object, Throwable)
            }
        }
        return mNextEntry;
    //#OldWeblogPageModel.java:700: end of method: WeblogEntryWrapper org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getNextEntry()
    }
    
    //------------------------------------------------------------------------
    
    /**
     * Get the previous occurring Entry.
     */
    public WeblogEntryWrapper getPreviousEntry() {
        WeblogEntryWrapper currentEntry = getWeblogEntry();
    //#OldWeblogPageModel.java:709: method: WeblogEntryWrapper org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getPreviousEntry()
    //#input(WeblogEntryWrapper getPreviousEntry()): __Descendant_Table[org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldWeblogPageModel]
    //#input(WeblogEntryWrapper getPreviousEntry()): __Descendant_Table[others]
    //#input(WeblogEntryWrapper getPreviousEntry()): __Dispatch_Table.getWeblogEntry()Lorg/apache/roller/weblogger/pojos/wrapper/WeblogEntryWrapper;
    //#input(WeblogEntryWrapper getPreviousEntry()): mLogger
    //#input(WeblogEntryWrapper getPreviousEntry()): this
    //#input(WeblogEntryWrapper getPreviousEntry()): this.__Tag
    //#input(WeblogEntryWrapper getPreviousEntry()): this.mCategory
    //#input(WeblogEntryWrapper getPreviousEntry()): this.mEntry
    //#input(WeblogEntryWrapper getPreviousEntry()): this.mLastEntry
    //#input(WeblogEntryWrapper getPreviousEntry()): this.mLocale
    //#input(WeblogEntryWrapper getPreviousEntry()): this.mPreviousEntry
    //#input(WeblogEntryWrapper getPreviousEntry()): this.mWeblogMgr
    //#input(WeblogEntryWrapper getPreviousEntry()): this.urlStrategy
    //#output(WeblogEntryWrapper getPreviousEntry()): return_value
    //#output(WeblogEntryWrapper getPreviousEntry()): this.mPreviousEntry
    //#pre[2] (WeblogEntryWrapper getPreviousEntry()): init'ed(this.mPreviousEntry)
    //#pre[4] (WeblogEntryWrapper getPreviousEntry()): this.__Tag == org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldWeblogPageModel
    //#pre[6] (WeblogEntryWrapper getPreviousEntry()): init'ed(this.mEntry)
    //#pre[7] (WeblogEntryWrapper getPreviousEntry()): init'ed(this.mLastEntry)
    //#pre[1] (WeblogEntryWrapper getPreviousEntry()): (soft) mLogger != null
    //#pre[5] (WeblogEntryWrapper getPreviousEntry()): (soft) init'ed(this.mCategory)
    //#pre[8] (WeblogEntryWrapper getPreviousEntry()): (soft) init'ed(this.mLocale)
    //#pre[9] (WeblogEntryWrapper getPreviousEntry()): (soft) this.mWeblogMgr != null
    //#pre[10] (WeblogEntryWrapper getPreviousEntry()): (soft) init'ed(this.urlStrategy)
    //#post(WeblogEntryWrapper getPreviousEntry()): init'ed(return_value)
    //#post(WeblogEntryWrapper getPreviousEntry()): this.mPreviousEntry == return_value
    //#unanalyzed(WeblogEntryWrapper getPreviousEntry()): Effects-of-calling:org.apache.roller.weblogger.pojos.WeblogEntry:getStatus
    //#unanalyzed(WeblogEntryWrapper getPreviousEntry()): Effects-of-calling:java.lang.String:equals
    //#unanalyzed(WeblogEntryWrapper getPreviousEntry()): Effects-of-calling:org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:wrap
    //#test_vector(WeblogEntryWrapper getPreviousEntry()): this.mPreviousEntry: Inverse{null}, Addr_Set{null}
    //#test_vector(WeblogEntryWrapper getPreviousEntry()): this.mCategory: Addr_Set{null}, Inverse{null}
    //#test_vector(WeblogEntryWrapper getPreviousEntry()): this.mLastEntry: Addr_Set{null}, Inverse{null}
    //#test_vector(WeblogEntryWrapper getPreviousEntry()): org.apache.roller.weblogger.business.WeblogManager:getPreviousEntry(...)@717: Addr_Set{null}, Inverse{null}
        if (mLastEntry != null) currentEntry = mLastEntry;
        if (mPreviousEntry == null && currentEntry != null ) {
            String catName = null;
            if (mCategory != null) {
                catName = mCategory.getName();
    //#OldWeblogPageModel.java:714: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogCategory:getName()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogEntryWrapper getPreviousEntry()
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogCategory:getName()
            }
            try {
                WeblogEntry prevEntry =
    //#OldWeblogPageModel.java:717: Warning: method not available
    //#    -- call on WeblogEntry org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:getPojo()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogEntryWrapper getPreviousEntry()
    //#    unanalyzed callee: WeblogEntry org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:getPojo()
    //#OldWeblogPageModel.java:717: Warning: method not available
    //#    -- call on WeblogEntry org.apache.roller.weblogger.business.WeblogManager:getPreviousEntry(WeblogEntry, String, String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogEntryWrapper getPreviousEntry()
    //#    unanalyzed callee: WeblogEntry org.apache.roller.weblogger.business.WeblogManager:getPreviousEntry(WeblogEntry, String, String)
                        mWeblogMgr.getPreviousEntry(currentEntry.getPojo(), catName, mLocale);
                
                if(prevEntry != null)
                    mPreviousEntry = WeblogEntryWrapper.wrap(prevEntry, urlStrategy);
    //#OldWeblogPageModel.java:721: Warning: method not available
    //#    -- call on WeblogEntryWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:wrap(WeblogEntry, URLStrategy)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogEntryWrapper getPreviousEntry()
    //#    unanalyzed callee: WeblogEntryWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogEntryWrapper:wrap(WeblogEntry, URLStrategy)
            } catch (WebloggerException e) {
                mLogger.error("PageModel.getPreviousEntry)", e);
    //#OldWeblogPageModel.java:723: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogEntryWrapper getPreviousEntry()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object, Throwable)
            }
        }
        return mPreviousEntry;
    //#OldWeblogPageModel.java:726: end of method: WeblogEntryWrapper org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getPreviousEntry()
    }
    
    //------------------------------------------------------------------------
    
    public boolean isUserAuthorizedToEdit() {
        try {
            RollerSession rses =
    //#OldWeblogPageModel.java:733: method: bool org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.isUserAuthorizedToEdit()
    //#OldWeblogPageModel.java:733: Warning: method not available
    //#    -- call on RollerSession org.apache.roller.weblogger.ui.core.RollerSession:getRollerSession(HttpServletRequest)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: bool isUserAuthorizedToEdit()
    //#    unanalyzed callee: RollerSession org.apache.roller.weblogger.ui.core.RollerSession:getRollerSession(HttpServletRequest)
    //#input(bool isUserAuthorizedToEdit()): mLogger
    //#input(bool isUserAuthorizedToEdit()): org.apache.roller.weblogger.pojos.WeblogPermission.AUTHOR
    //#input(bool isUserAuthorizedToEdit()): this
    //#input(bool isUserAuthorizedToEdit()): this.mRequest
    //#input(bool isUserAuthorizedToEdit()): this.mWebsite
    //#output(bool isUserAuthorizedToEdit()): return_value
    //#pre[1] (bool isUserAuthorizedToEdit()): (soft) mLogger != null
    //#pre[3] (bool isUserAuthorizedToEdit()): (soft) init'ed(this.mRequest)
    //#pre[4] (bool isUserAuthorizedToEdit()): (soft) init'ed(this.mWebsite)
    //#presumption(bool isUserAuthorizedToEdit()): init'ed(org.apache.roller.weblogger.pojos.WeblogPermission.AUTHOR)
    //#post(bool isUserAuthorizedToEdit()): init'ed(return_value)
                    RollerSession.getRollerSession(mRequest);
            if (rses != null && rses.getAuthenticatedUser() != null && mWebsite != null) {
    //#OldWeblogPageModel.java:735: Warning: method not available
    //#    -- call on User org.apache.roller.weblogger.ui.core.RollerSession:getAuthenticatedUser()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: bool isUserAuthorizedToEdit()
    //#    unanalyzed callee: User org.apache.roller.weblogger.ui.core.RollerSession:getAuthenticatedUser()
                return mWebsite.hasUserPermissions(rses.getAuthenticatedUser(), WeblogPermission.AUTHOR);
    //#OldWeblogPageModel.java:736: Warning: method not available
    //#    -- call on User org.apache.roller.weblogger.ui.core.RollerSession:getAuthenticatedUser()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: bool isUserAuthorizedToEdit()
    //#    unanalyzed callee: User org.apache.roller.weblogger.ui.core.RollerSession:getAuthenticatedUser()
    //#OldWeblogPageModel.java:736: Warning: method not available
    //#    -- call on bool org.apache.roller.weblogger.pojos.Weblog:hasUserPermissions(User, short)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: bool isUserAuthorizedToEdit()
    //#    unanalyzed callee: bool org.apache.roller.weblogger.pojos.Weblog:hasUserPermissions(User, short)
            }
        } catch (Exception e) {
            mLogger.warn("PageModel.isUserAuthorizedToEdit()", e);
    //#OldWeblogPageModel.java:739: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:warn(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: bool isUserAuthorizedToEdit()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:warn(Object, Throwable)
        }
        return false;
    //#OldWeblogPageModel.java:741: end of method: bool org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.isUserAuthorizedToEdit()
    }
    
    //------------------------------------------------------------------------
    
    public boolean isUserAuthorizedToAdmin() {
        try {
            RollerSession rses =
    //#OldWeblogPageModel.java:748: method: bool org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.isUserAuthorizedToAdmin()
    //#OldWeblogPageModel.java:748: Warning: method not available
    //#    -- call on RollerSession org.apache.roller.weblogger.ui.core.RollerSession:getRollerSession(HttpServletRequest)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: bool isUserAuthorizedToAdmin()
    //#    unanalyzed callee: RollerSession org.apache.roller.weblogger.ui.core.RollerSession:getRollerSession(HttpServletRequest)
    //#input(bool isUserAuthorizedToAdmin()): mLogger
    //#input(bool isUserAuthorizedToAdmin()): org.apache.roller.weblogger.pojos.WeblogPermission.ADMIN
    //#input(bool isUserAuthorizedToAdmin()): this
    //#input(bool isUserAuthorizedToAdmin()): this.mRequest
    //#input(bool isUserAuthorizedToAdmin()): this.mWebsite
    //#output(bool isUserAuthorizedToAdmin()): return_value
    //#pre[1] (bool isUserAuthorizedToAdmin()): (soft) mLogger != null
    //#pre[3] (bool isUserAuthorizedToAdmin()): (soft) init'ed(this.mRequest)
    //#pre[4] (bool isUserAuthorizedToAdmin()): (soft) init'ed(this.mWebsite)
    //#presumption(bool isUserAuthorizedToAdmin()): init'ed(org.apache.roller.weblogger.pojos.WeblogPermission.ADMIN)
    //#post(bool isUserAuthorizedToAdmin()): init'ed(return_value)
                    RollerSession.getRollerSession(mRequest);
            if (rses != null && rses.getAuthenticatedUser() != null && mWebsite != null) {
    //#OldWeblogPageModel.java:750: Warning: method not available
    //#    -- call on User org.apache.roller.weblogger.ui.core.RollerSession:getAuthenticatedUser()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: bool isUserAuthorizedToAdmin()
    //#    unanalyzed callee: User org.apache.roller.weblogger.ui.core.RollerSession:getAuthenticatedUser()
                return mWebsite.hasUserPermissions(rses.getAuthenticatedUser(), WeblogPermission.ADMIN);
    //#OldWeblogPageModel.java:751: Warning: method not available
    //#    -- call on User org.apache.roller.weblogger.ui.core.RollerSession:getAuthenticatedUser()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: bool isUserAuthorizedToAdmin()
    //#    unanalyzed callee: User org.apache.roller.weblogger.ui.core.RollerSession:getAuthenticatedUser()
    //#OldWeblogPageModel.java:751: Warning: method not available
    //#    -- call on bool org.apache.roller.weblogger.pojos.Weblog:hasUserPermissions(User, short)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: bool isUserAuthorizedToAdmin()
    //#    unanalyzed callee: bool org.apache.roller.weblogger.pojos.Weblog:hasUserPermissions(User, short)
            }
        } catch (Exception e) {
            mLogger.warn("PageModel.isUserAuthorizedToAdmin()", e);
    //#OldWeblogPageModel.java:754: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:warn(Object, Throwable)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: bool isUserAuthorizedToAdmin()
    //#    unanalyzed callee: void org.apache.commons.logging.Log:warn(Object, Throwable)
        }
        return false;
    //#OldWeblogPageModel.java:756: end of method: bool org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.isUserAuthorizedToAdmin()
    }
    
    //------------------------------------------------------------------------
    
    public boolean isUserAuthenticated() {
        return (mRequest.getUserPrincipal() != null);
    //#OldWeblogPageModel.java:762: method: bool org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.isUserAuthenticated()
    //#input(bool isUserAuthenticated()): this
    //#input(bool isUserAuthenticated()): this.mRequest
    //#output(bool isUserAuthenticated()): return_value
    //#pre[2] (bool isUserAuthenticated()): this.mRequest != null
    //#post(bool isUserAuthenticated()): init'ed(return_value)
    //#OldWeblogPageModel.java:762: end of method: bool org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.isUserAuthenticated()
    }
    
    //------------------------------------------------------------------------
    
    public String getRequestParameter(String key) {
        return mRequest.getParameter(key);
    //#OldWeblogPageModel.java:768: method: String org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getRequestParameter(String)
    //#input(String getRequestParameter(String)): key
    //#input(String getRequestParameter(String)): this
    //#input(String getRequestParameter(String)): this.mRequest
    //#output(String getRequestParameter(String)): return_value
    //#pre[3] (String getRequestParameter(String)): this.mRequest != null
    //#post(String getRequestParameter(String)): init'ed(return_value)
    //#OldWeblogPageModel.java:768: end of method: String org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getRequestParameter(String)
    }
    
    public int getIntRequestParameter(String key) {
        return Integer.parseInt(mRequest.getParameter(key));
    //#OldWeblogPageModel.java:772: method: int org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getIntRequestParameter(String)
    //#input(int getIntRequestParameter(String)): key
    //#input(int getIntRequestParameter(String)): this
    //#input(int getIntRequestParameter(String)): this.mRequest
    //#output(int getIntRequestParameter(String)): return_value
    //#pre[3] (int getIntRequestParameter(String)): this.mRequest != null
    //#post(int getIntRequestParameter(String)): init'ed(return_value)
    //#OldWeblogPageModel.java:772: end of method: int org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getIntRequestParameter(String)
    }
    
    //------------------------------------------------------------------------
    
    public WeblogBookmarkFolderWrapper getFolderByPath(String path) {
        try {
            WeblogBookmarkFolder folder = mBookmarkMgr.getFolder(mWebsite, path);
    //#OldWeblogPageModel.java:779: method: WeblogBookmarkFolderWrapper org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getFolderByPath(String)
    //#OldWeblogPageModel.java:779: Warning: method not available
    //#    -- call on WeblogBookmarkFolder org.apache.roller.weblogger.business.BookmarkManager:getFolder(Weblog, String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogBookmarkFolderWrapper getFolderByPath(String)
    //#    unanalyzed callee: WeblogBookmarkFolder org.apache.roller.weblogger.business.BookmarkManager:getFolder(Weblog, String)
    //#input(WeblogBookmarkFolderWrapper getFolderByPath(String)): mLogger
    //#input(WeblogBookmarkFolderWrapper getFolderByPath(String)): path
    //#input(WeblogBookmarkFolderWrapper getFolderByPath(String)): this
    //#input(WeblogBookmarkFolderWrapper getFolderByPath(String)): this.mBookmarkMgr
    //#input(WeblogBookmarkFolderWrapper getFolderByPath(String)): this.mWebsite
    //#output(WeblogBookmarkFolderWrapper getFolderByPath(String)): return_value
    //#pre[1] (WeblogBookmarkFolderWrapper getFolderByPath(String)): (soft) mLogger != null
    //#pre[4] (WeblogBookmarkFolderWrapper getFolderByPath(String)): (soft) this.mBookmarkMgr != null
    //#pre[5] (WeblogBookmarkFolderWrapper getFolderByPath(String)): (soft) init'ed(this.mWebsite)
    //#post(WeblogBookmarkFolderWrapper getFolderByPath(String)): init'ed(return_value)
            
            if(folder != null)
                return WeblogBookmarkFolderWrapper.wrap(folder);
    //#OldWeblogPageModel.java:782: Warning: method not available
    //#    -- call on WeblogBookmarkFolderWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogBookmarkFolderWrapper:wrap(WeblogBookmarkFolder)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogBookmarkFolderWrapper getFolderByPath(String)
    //#    unanalyzed callee: WeblogBookmarkFolderWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogBookmarkFolderWrapper:wrap(WeblogBookmarkFolder)
        } catch (WebloggerException e) {
            mLogger.error(e);
    //#OldWeblogPageModel.java:784: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: WeblogBookmarkFolderWrapper getFolderByPath(String)
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object)
        }
        
        return null;
    //#OldWeblogPageModel.java:787: end of method: WeblogBookmarkFolderWrapper org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getFolderByPath(String)
    }
    
    /**
     * Facade for WeblogManager.getRecentComments().
     * Get the most recent (chronologically) posted Comments
     * for this website, limited to maxCount.
     * @return List of Comments.
     */
    public List getRecentComments(int maxCount) {
        List recentComments = new ArrayList();
    //#OldWeblogPageModel.java:797: method: List org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getRecentComments(int)
    //#input(List getRecentComments(int)): mLogger
    //#input(List getRecentComments(int)): maxCount
    //#input(List getRecentComments(int)): this
    //#input(List getRecentComments(int)): this.mWebsite
    //#input(List getRecentComments(int)): this.urlStrategy
    //#output(List getRecentComments(int)): new ArrayList(getRecentComments#1) num objects
    //#output(List getRecentComments(int)): new ArrayList(getRecentComments#2) num objects
    //#output(List getRecentComments(int)): return_value
    //#new obj(List getRecentComments(int)): new ArrayList(getRecentComments#1)
    //#new obj(List getRecentComments(int)): new ArrayList(getRecentComments#2)
    //#pre[1] (List getRecentComments(int)): (soft) mLogger != null
    //#pre[4] (List getRecentComments(int)): (soft) init'ed(this.mWebsite)
    //#pre[5] (List getRecentComments(int)): (soft) init'ed(this.urlStrategy)
    //#presumption(List getRecentComments(int)): org.apache.roller.weblogger.business.WeblogManager:getComments(...)@800 != null
    //#presumption(List getRecentComments(int)): org.apache.roller.weblogger.business.Weblogger:getWeblogManager(...)@799 != null
    //#presumption(List getRecentComments(int)): org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger(...)@799 != null
    //#post(List getRecentComments(int)): return_value == One-of{&new ArrayList(getRecentComments#2), &new ArrayList(getRecentComments#1)}
    //#post(List getRecentComments(int)): return_value in Addr_Set{&new ArrayList(getRecentComments#1),&new ArrayList(getRecentComments#2)}
    //#post(List getRecentComments(int)): new ArrayList(getRecentComments#1) num objects == 1
    //#post(List getRecentComments(int)): new ArrayList(getRecentComments#2) num objects <= 1
        try {
            WeblogManager wmgr = WebloggerFactory.getWeblogger().getWeblogManager();
    //#OldWeblogPageModel.java:799: Warning: method not available
    //#    -- call on Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getRecentComments(int)
    //#    unanalyzed callee: Weblogger org.apache.roller.weblogger.business.WebloggerFactory:getWeblogger()
    //#OldWeblogPageModel.java:799: Warning: method not available
    //#    -- call on WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getRecentComments(int)
    //#    unanalyzed callee: WeblogManager org.apache.roller.weblogger.business.Weblogger:getWeblogManager()
            List recent = wmgr.getComments(
    //#OldWeblogPageModel.java:800: Warning: method not available
    //#    -- call on List org.apache.roller.weblogger.business.WeblogManager:getComments(Weblog, WeblogEntry, String, Date, Date, String, bool, int, int)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getRecentComments(int)
    //#    unanalyzed callee: List org.apache.roller.weblogger.business.WeblogManager:getComments(Weblog, WeblogEntry, String, Date, Date, String, bool, int, int)
                    
                    mWebsite,
                    null,  // weblog entry
                    null,  // search String
                    null,  // startDate
                    null,WeblogEntryComment.APPROVED, // approved comments only
                    true,          // we want reverse chrono order
                    0,             // offset
                    maxCount);     // no limit
            
            // wrap pojos
            recentComments = new ArrayList(recent.size());
            Iterator it = recent.iterator();
            while(it.hasNext()) {
                recentComments.add(WeblogEntryCommentWrapper.wrap((WeblogEntryComment) it.next(), urlStrategy));
    //#OldWeblogPageModel.java:815: Warning: method not available
    //#    -- call on WeblogEntryCommentWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogEntryCommentWrapper:wrap(WeblogEntryComment, URLStrategy)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getRecentComments(int)
    //#    unanalyzed callee: WeblogEntryCommentWrapper org.apache.roller.weblogger.pojos.wrapper.WeblogEntryCommentWrapper:wrap(WeblogEntryComment, URLStrategy)
            }
        } catch (WebloggerException e) {
            mLogger.error(e);
    //#OldWeblogPageModel.java:818: Warning: method not available
    //#    -- call on void org.apache.commons.logging.Log:error(Object)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: List getRecentComments(int)
    //#    unanalyzed callee: void org.apache.commons.logging.Log:error(Object)
        }
        return recentComments;
    //#OldWeblogPageModel.java:820: end of method: List org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getRecentComments(int)
    }
    
    public boolean getEmailComments() {
        if (mWebsite != null) {
    //#OldWeblogPageModel.java:824: method: bool org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getEmailComments()
    //#input(bool getEmailComments()): this
    //#input(bool getEmailComments()): this.mWebsite
    //#output(bool getEmailComments()): return_value
    //#pre[2] (bool getEmailComments()): init'ed(this.mWebsite)
    //#presumption(bool getEmailComments()): org.apache.roller.weblogger.pojos.Weblog:getEmailComments(...)@826 != null
    //#post(bool getEmailComments()): init'ed(return_value)
    //#test_vector(bool getEmailComments()): this.mWebsite: Addr_Set{null}, Inverse{null}
            boolean emailComments = WebloggerRuntimeConfig.getBooleanProperty("users.comments.emailnotify");
    //#OldWeblogPageModel.java:825: Warning: method not available
    //#    -- call on bool org.apache.roller.weblogger.config.WebloggerRuntimeConfig:getBooleanProperty(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: bool getEmailComments()
    //#    unanalyzed callee: bool org.apache.roller.weblogger.config.WebloggerRuntimeConfig:getBooleanProperty(String)
            return (mWebsite.getEmailComments().booleanValue() && emailComments);
    //#OldWeblogPageModel.java:826: Warning: method not available
    //#    -- call on Boolean org.apache.roller.weblogger.pojos.Weblog:getEmailComments()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
    //#    method: bool getEmailComments()
    //#    unanalyzed callee: Boolean org.apache.roller.weblogger.pojos.Weblog:getEmailComments()
        }
        return false;
    //#OldWeblogPageModel.java:828: end of method: bool org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel.getEmailComments()
    }
}
    //#OldWeblogPageModel.java:: end of class: org.apache.roller.weblogger.ui.rendering.velocity.deprecated.OldWeblogPageModel
