@Override
  public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
    unitOfWork.begin();
    try {
      filterChain.doFilter(servletRequest, servletResponse);
    } finally {
      unitOfWork.end();
    }
  }
Replacement for Guice built-in PersistFilter as PersistService is started on Ambari start
ambari-server/src/main/java/org/apache/ambari/server/api/AmbariPersistFilter.java