}
private void dispatchToEjbEndpoint(HttpServletRequest hreq,
HttpServletResponse hresp,
EjbRuntimeEndpointInfo ejbEndpoint) {
EjbEndpointFacade container = ejbEndpoint.getContainer();
ClassLoader savedClassLoader = null;
boolean authenticated = false;
try {
// Set context class loader to application class loader
savedClassLoader = Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(container.getEndpointClassLoader());
// compute realmName
String realmName = null;
Application app = ejbEndpoint.getEndpoint().getBundleDescriptor().getApplication();
if (app != null) {