moving system out inside the loop
using non deprecated method
adding ENTITY_TYPE as paramater getNumberOfWorkflowInstances etc
fixing small bug
making cluster submit efficent
added updateTimeInPast_Feed