Source:
public void activate(Context.OperatorContext context) { ConnectionStateManager.ConnectionBuilder connectionBuilder = withConnectionBuilder(); checkNotNull(connectionBuilder, " Connection Builder cannot be null."); connectionStateManager = connectionBuilder.initialize(); cluster = connectionStateManager.getCluster(); session = connectionStateManager.getSession(); keyspaceName = connectionStateManager.getKeyspaceName(); tableName = connectionStateManager.getTableName(); checkNotNull(session, "Cassandra session cannot be null"); tuplePayloadClass = getPayloadPojoClass(); columnDefinitions = new HashMap<>(); dataTypeGroupedColumns = new HashMap<>(); counterColumns = new HashSet<>(); collectionColumns = new HashSet<>(); pkColumnNames = new HashSet<>(); listColumns = new HashSet<>(); mapColumns = new HashSet<>(); setColumns = new HashSet<>(); codecsForCassandraColumnNames = new HashMap<>(); userDefinedTypeColumns = new HashSet<>(); regularColumns = new HashSet<>(); colNamesMap = new HashMap<>(); getters = new HashMap<>(); userDefinedTypesClass = new HashMap<>(); uniqueHostsWrittenToInCurrentWindow = new HashSet<>(); pojoFieldNamesToCassandraColumns = getOverridingPojoFieldsToCassandraColumnNames(); if (pojoFieldNamesToCassandraColumns == null) { pojoFieldNamesToCassandraColumns = new HashMap<>(); } registerCodecs(); KeyspaceMetadata keyspaceMetadata = cluster.getMetadata() .getKeyspace(connectionStateManager.getKeyspaceName()); TableMetadata tableMetadata = keyspaceMetadata .getTable(connectionStateManager.getTableName()); registerPrimaryKeyColumnDefinitions(tableMetadata); registerNonPKColumnDefinitions(tableMetadata); preparedStatementTypes = new HashMap<>(); generatePreparedStatements(); registerGettersForPayload(); if (null != windowDataManager) { if ( (context.getValue(Context.OperatorContext.ACTIVATION_WINDOW_ID) != Stateless.WINDOW_ID) && context.getValue(Context.OperatorContext.ACTIVATION_WINDOW_ID) < windowDataManager.getLargestCompletedWindow()) { isInSafeMode = true; reconcilingWindowId = windowDataManager.getLargestCompletedWindow() + 1; isInReconcilingMode = false; } } else { isInSafeMode = false; isInReconcilingMode = false; reconcilingWindowId = Stateless.WINDOW_ID; } }

Target:
public void activate(Context.OperatorContext context) { ConnectionStateManager.ConnectionBuilder connectionBuilder = withConnectionBuilder(); if (connectionBuilder == null) { connectionBuilder = buildConnectionBuilderFromPropertiesFile(); } checkNotNull(connectionBuilder, " Connection Builder cannot be null."); connectionStateManager = connectionBuilder.initialize(); cluster = connectionStateManager.getCluster(); session = connectionStateManager.getSession(); checkNotNull(session, "Cassandra session cannot be null"); tuplePayloadClass = getPayloadPojoClass(); columnDefinitions = new HashMap<>(); counterColumns = new HashSet<>(); collectionColumns = new HashSet<>(); pkColumnNames = new HashSet<>(); listColumns = new HashSet<>(); mapColumns = new HashSet<>(); setColumns = new HashSet<>(); codecsForCassandraColumnNames = new HashMap<>(); userDefinedTypeColumns = new HashSet<>(); regularColumns = new HashSet<>(); colNamesMap = new HashMap<>(); getters = new HashMap<>(); userDefinedTypesClass = new HashMap<>(); uniqueHostsWrittenToInCurrentWindow = new HashSet<>(); registerCodecs(); KeyspaceMetadata keyspaceMetadata = cluster.getMetadata() .getKeyspace(connectionStateManager.getKeyspaceName()); TableMetadata tableMetadata = keyspaceMetadata .getTable(connectionStateManager.getTableName()); registerPrimaryKeyColumnDefinitions(tableMetadata); registerNonPKColumnDefinitions(tableMetadata); preparedStatementTypes = new HashMap<>(); generatePreparedStatements(); registerGettersForPayload(); isInSafeMode = false; isInReconcilingMode = false; reconcilingWindowId = Stateless.WINDOW_ID; if ( (context.getValue(Context.OperatorContext.ACTIVATION_WINDOW_ID) != Stateless.WINDOW_ID) && context.getValue(Context.OperatorContext.ACTIVATION_WINDOW_ID) < windowDataManager.getLargestCompletedWindow()) { isInSafeMode = true; reconcilingWindowId = windowDataManager.getLargestCompletedWindow() + 1; isInReconcilingMode = false; } }