referencedTypes.addAll(statementEventTypeRef.getTypesForStatementName(statement.getName()));
if (statement.isDestroyed()) {
continue;
}
try {
statement.destroy();
}
catch (RuntimeException ex) {
log.warn("Unexpected exception destroying statement: " + ex.getMessage(), ex);
}
revertedStatements.add(item);