public void validate(ContextMetadata metadata, ExceptionHolder warnings)
{
super.validate(metadata, warnings);
Lookup stateMap = new HashTab();
MetadataCompoundValidationException eh = null;
if (m_lastVersion != null && !m_metadata.getVersion().equals(m_lastVersion.getName()))
{
eh = new MetadataCompoundValidationException();
MetadataValidationException e = new MetadataValidationException("err.upgrade.lastVersion",
new Object[]{m_lastVersion.getName(), m_metadata.getVersion()});
setProperties(e);
eh.addException(e);
}
// roll back the state and validate that can undo each step and state is still valid
for (VersionUpgrade version = m_lastVersion; version != null; version = version.getPrev())
{