void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
    if (task.getType().equals(Task.Type.CONFIGURE) && StringUtils.isNotEmpty(service)) {
      ((ConfigureTask) task).associatedService = service;
    } else if (task.getType().equals(Task.Type.CREATE_AND_CONFIGURE) && StringUtils.isNotEmpty(service)) {
      ((CreateAndConfigureTask) task).associatedService = service;
    }
  }
If a task is found that is configure, set its associated service.  This is used
if the configuration type cannot be isolated by service.
ambari-server/src/main/java/org/apache/ambari/server/stack/upgrade/ExecuteStage.java