List<AnnotationPart> annots = model.getAnnotations();
for (AnnotationPart part : annots) {
if (isMainSessionizer && com.ebay.pulsar.sessionizer.esper.annotation.SubSession.class.getSimpleName().equals(part.getName())) {
String sessionizerName = (String) part.getAttributes().get(0).getValue();
if (!subSessionNames.contains(sessionizerName)) {
if (isMainSessionizer && UpdateDuration.class.getSimpleName().equals(part.getName())) {
statement.addListener(new UpdateTTLListener(context, maxTTL));
if (DecorateEvent.class.getSimpleName().equals(part.getName())) {
statement.addListener(new DecorateEventListener(context));
if (AppendState.class.getSimpleName().equals(part.getName())) {
statement.addListener(new AppendStateListener(context, (String) getAnnotationValue(part, "name", null),
(String) getAnnotationValue(part, "colname", null),
if (UpdateState.class.getSimpleName().equals(part.getName())) {
statement.addListener(new SessionStateListener(context));
if (UpdateMetadata.class.getSimpleName().equals(part.getName())) {
statement.addListener(new SessionMetadataListener(context));
if (UpdateCounter.class.getSimpleName().equals(part.getName())) {
statement.addListener(new SessionCounterListener((String) part.getAttributes().get(0).getValue(), context));
if (DebugSession.class.getSimpleName().equals(part.getName())) {
String prefix = (String) getAnnotationValue(part, "counter", null);
String field = (String) getAnnotationValue(part, "colname", null);