.setKeySerDeType(keySerDeType).build();
// at this point, the schema is a valid migration. persist it.
managedSchema.getEntitySchemas().put("0", entitySchema.getRawSchema());
if (!managedSchemaDao.save(managedSchema)) {
throw new ConcurrentSchemaModificationException(
"The schema has been updated concurrently.");
}
getManagedSchemaMap().put(
getManagedSchemaMapKey(managedSchema.getTable(),
managedSchema.getName()), managedSchema);