private void processPatch(final State current){
  try {
switch (current.taskState.stage) {
case STARTED:
      queryHostsForDatastore(current);
    break;
case FAILED:
case FINISHED:
case CANCELLED:
  break;
default :
throw new IllegalStateException(String.format("Un-expected stage: %s",current.taskState.stage));
}
}
 catch (Throwable e) {
failTask(e,null);
}
}

private void processPatch ( final State current ) { try { switch ( current . taskState . stage ) { case STARTED : queryHostsForDatastore ( current ) ; break ; case FAILED : case FINISHED : case CANCELLED : break ; default : throw new IllegalStateException ( String . format ( "Un-expected stage: %s" , current . taskState . stage ) ) ; } } catch ( Throwable e ) { failTask ( e , null ) ; } }
does any additional processing after the patch operation has been completed .
