@Transactional
  public void refresh(StackEntity stack) {
    entityManagerProvider.get().refresh(stack);
  }
Refresh the state of the stack instance from the database.

@param stack
         the stack to refresh (not {@code null}).
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/StackDAO.java