Github user markap14 commented on the issue:
https://github.com/apache/nifi/pull/2633
@mcgilman many thanks for adding this improvement. Code looks good. Was
able to verify functionality and everything worked exactly as I expected. +1
merged to master.---
