/** Gets an instance of stapler for use in lazy json binding. */ @VisibleForTesting Stapler getStapler() { final WebApp webapp = new WebApp(null /* context */); webapp.setClassLoader(getClassLoader()); Stapler stapler = new Stapler() { @Override public WebApp getWebApp() { return webapp; } }; return stapler; }
@Override public WebApp getWebApp() { return null; }