[BACKLOG-350] - the PDI environment was getting initialized with each ca...

...ll to the reducer.  This change makes it so it will not be initialized when the transaction is already running, so that it only gets initialized once.  also applying checkstyle rules.