public final int doWikiStartTag()
throws IOException,
ProviderException
{
WikiEngine engine = m_wikiContext.getEngine();
WikiPage page = m_wikiContext.getPage();
if( page != null )
{
PageManager mgr = engine.getPageManager();
PageLock lock = mgr.getCurrentLock( page );
HttpSession session = pageContext.getSession();
PageLock userLock = (PageLock) session.getAttribute("lock-"+page.getName());
if( (lock != null && m_mode == LockState.LOCKED && lock != userLock ) ||
(lock != null && m_mode == LockState.OWNED && lock == userLock ) ||
(lock == null && m_mode == LockState.NOTLOCKED) )
{