How to use @WebServlet with vaadin 7 beta2?

I had @WebServlet working with beta1 but with the refactoring to beta2 I am lost. Does anyone have an example?

Okay, I figured it out. The change to a listener throw me.

@WebServlet(urlPatterns = {"/*"})
public class MMServlet extends VaadinServlet {
  private static final long serialVersionUID = -1386739418720898885L;

  @Override
  protected void servletInitialized() {
    super.servletInitialized();

    this.getService().addSessionInitListener(new SessionInitListener() {
      @Override
      public void sessionInit(final SessionInitEvent event) throws ServiceException {
        event.getService().addUIProvider(event.getSession(), new UIProvider() {

          @Override
          public Class<? extends UI> getUIClass(final UIClassSelectionEvent event) {           
            return MMApplicationUI.class;
          }
        });
      }
    });
  }
}

For vaadin beta3 change the line:

event.getService().addUIProvider(event.getSession(), new UIProvider() {

to:

event.getSession().addUIProvider(new UIProvider() {