endpointContext = (ServletEndpointContext)context;
// Get the authorized user name and password from the init parameters
ServletContext servletContext = endpointContext.getServletContext();
userName = servletContext.getInitParameter("UserName");
password = servletContext.getInitParameter("Password");