@Transactional
  public void remove(WidgetEntity widgetEntity) {
    entityManagerProvider.get().remove(merge(widgetEntity));
  }
DAO utilities for dealing mostly with {@link TypedQuery} results.
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/WidgetDAO.java