@Override
  public State getDesiredState() {
    ServiceDesiredStateEntity serviceDesiredStateEntity = getServiceDesiredStateEntity();
    return serviceDesiredStateEntity.getDesiredState();
  }
Refresh Service info due to current stack
@throws AmbariException
ambari-server/src/main/java/org/apache/ambari/server/state/ServiceImpl.java