StringBuffer buf = new StringBuffer(256);
SQLAppender outerAppender = m_appender;
SQLAppender innerAppender = getDynamicSQLAppender(buf);
Metadata metadata = schema.getMetadata();
VersionUpgrade firstVersion = (sVersion == null)
? upgrade.getFirstVersion() : upgrade.getVersion(sVersion);
Lookup/*<Object, UpgradeState>*/ stateMap = Upgrade.getInitialState(firstVersion);
SchemaVersion version = new SchemaVersion();
upgrade.validate(metadata, null);