code: public void start(BundleContext context) throws Exception {
          applicationFactory =
                  new DefaultWebApplicationFactory(context, WicketApplication.class, "plain.pagefactory", "plain/pagefactory");
          pageFactory = new AbstractPageFactory<SimpleTestPage>(context, "pagefactory", "plain.pagefactory", "pagefactory") {
              public Class<SimpleTestPage> getPageClass() {
                  return SimpleTestPage.class;
              }
  
              public SimpleTestPage createPage(PageParameters params) {
                  return new SimpleTestPage("some content to show that this really works...");
              }
          };
          pageFactory.register();
          applicationFactory.register();
      }
docs: {@inheritDoc}