List<? extends Exception> exceptions;
try {
Configuration configuration = getConfiguration();
if ("drop".equalsIgnoreCase(action)) {
SchemaExport schemaExport = getSchemaExport(configuration);
schemaExport.drop(false, false);
exceptions = CollectionUtil.checkList(schemaExport.getExceptions(), Exception.class);
}
else if ("create".equalsIgnoreCase(action)) {
SchemaExport schemaExport = getSchemaExport(configuration);
schemaExport.execute(false, false, false, true);
exceptions = CollectionUtil.checkList(schemaExport.getExceptions(), Exception.class);
}
else if ("update".equalsIgnoreCase(action)) {
JbpmSchemaUpdate schemaUpdate = getSchemaUpdate(configuration);
schemaUpdate.execute(false, false);
exceptions = schemaUpdate.getExceptions();