generic method endProcessingActions added. This helps to control actions to be carried when the processing of an Entity is completed