@Transactional
  public WidgetLayoutEntity merge(WidgetLayoutEntity widgetLayoutEntity) {
    return entityManagerProvider.get().merge(widgetLayoutEntity);
  }
DAO utilities for dealing mostly with {@link TypedQuery} results.
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/WidgetLayoutDAO.java