{
if ( !(appServer instanceof BRJSApplicationServer) )
{
throw new RuntimeException("appHasServlet can only be called when application server is an instance of " + BRJSApplicationServer.class.getSimpleName());
}
BRJSApplicationServer brjsAppServer = (BRJSApplicationServer) appServer;
brjsAppServer.addServlet(app, servlet, path);
return builderChainer;
}