private HostComponentStateEntity getStateEntity() {
    return hostComponentStateDAO.findById(hostComponentStateId);
  }
Gets the state entity for this {@link ServiceComponentHost}.

@return the {@link HostComponentStateEntity} for this
        {@link ServiceComponentHost}, or {@code null} if there is none.
ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostImpl.java