Set<String> statementIds = new HashSet<String>();
for (EPStatement aStmt : stmt)
{
if (aStmt == null)
{
throw new EPServiceIsolationException("Illegal argument, a null value was provided in the statement list");
}
EPStatementSPI stmtSpi = (EPStatementSPI) aStmt;
statementIds.add(stmtSpi.getStatementId());
if (aStmt.getServiceIsolated() == null)
{
throw new EPServiceIsolationException("Statement named '" + aStmt.getName() + "' is not currently in service isolation");
}
if (!aStmt.getServiceIsolated().equals(isolatedServiceName))
{
throw new EPServiceIsolationException("Statement named '" + aStmt.getName() + "' not in this service isolation but under service isolation '" + aStmt.getName() + "'");
}
}
// start txn
unisolatedServices.getStatementIsolationService().beginUnisolatingStatements(isolatedServiceName, services.getUnitId(), stmt);