@Override
  public ServiceComponent getServiceComponent(String componentName)
      throws AmbariException {
    ServiceComponent serviceComponent = components.get(componentName);
    if (null == serviceComponent) {
      throw new ServiceComponentNotFoundException(cluster.getClusterName(),
          getName(), componentName);
    }

    return serviceComponent;
  }
Refresh Service info due to current stack
@throws AmbariException
ambari-server/src/main/java/org/apache/ambari/server/state/ServiceImpl.java