if (s_log.isDebugEnabled()) { s_log.debug("Old value is " + m_oldAttributeValue); }
    public void beforeSave() {        m_oldAttributeValue = null;        m_isModified = m_domainObject.isPropertyModified(m_attributeName);        boolean wasNew = m_domainObject.isNew();        // if the url has been modified, we need the old url        // if it is modified and new then this is the first url so        // the "old" url is the "new" url        if (m_isModified) {            if (wasNew) {                m_oldAttributeValue = getAttributeValue();            } else {                DataCollection collection =                    SessionManager.getSession().retrieve                    (m_domainObject.getObjectType().getQualifiedName());                collection.addEqualsFilter(m_id,                                           m_domainObject.getOID().get(m_id));                if (collection.next()) {                    m_oldAttributeValue = (String)collection.get                        (m_attributeName);                }                collection.close();            }        }    }