if (optionalStatementIdGenerator == null) {
if (options.getIsolatedServiceProvider() == null) {
stmt = epService.createEPL(item.getExpression(), statementName, userObject);
}
else {
EPServiceProviderIsolated unit = statementIsolationService.getIsolationUnit(options.getIsolatedServiceProvider(), -1);
stmt = unit.getEPAdministrator().createEPL(item.getExpression(), statementName, userObject);
}
}
else {
String statementId = optionalStatementIdGenerator.getNextStatementId();
if (options.getIsolatedServiceProvider() == null) {
stmt = epService.createEPLStatementId(item.getExpression(), statementName, userObject, statementId);
}
else {
EPServiceProviderIsolated unit = statementIsolationService.getIsolationUnit(options.getIsolatedServiceProvider(), -1);
EPAdministratorIsolatedSPI spi = (EPAdministratorIsolatedSPI) unit.getEPAdministrator();
stmt = spi.createEPLStatementId(item.getExpression(), statementName, userObject, statementId);
}
}
statementNames.add(new DeploymentInformationItem(stmt.getName(), stmt.getText()));
statements.add(stmt);