if (outputRowConversionHook == null) {
String outputEventType = statementId + "_dbpoll_" + streamNumber;
eventType = eventAdapterService.createAnonymousMapType(outputEventType, eventTypeFields);
}
else {
Class carrierClass = outputRowConversionHook.getOutputRowType(new SQLOutputRowTypeContext(databaseStreamSpec.getDatabaseName(), databaseStreamSpec.getSqlWithSubsParams(), eventTypeFields));
if (carrierClass == null) {
throw new ExprValidationException("Output row conversion hook returned no type");
}
eventType = eventAdapterService.addBeanType(carrierClass.getName(), carrierClass, false, false, false);
}