if (version != null)
{
if (!metadata.getNamespace().equals(version.getNamespace()))
{
throw new PersistenceException("err.persistence.storageNamespace",
new Object[]{version.getNamespace(), dataSource.getName(),
sFragment, metadata.getNamespace()});
}
if (!metadata.getVersion().equals(version.getVersion()))
{
throw new PersistenceException("err.persistence.storageVersion",
new Object[]{version.getVersion(), dataSource.getName(),
sFragment, metadata.getVersion(), metadata.getNamespace()});
}
}
}