bug fix : when a client timeout happens very early in the segmentation process,  a NullPointerException is thrown before the segmentation task is declared as done (subsequent tasks will stay in waiting state forever)
bug fix : When SegmentationJobRequest.getSegmentationIds() returns null, a NullPointerException were thrown.
refactoring : use the new TaskTemplate class representing good practices for a monitored segmentation task