public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// The API explorer sets the current environment as a request header
// If this parameter exists, then we initialize it
String envName = request.getHeader("x-env");
if(StringUtil.isNotEmpty(envName)) {
DataAccessBean dataAccess = DataAccessBean.get();
PlaygroundEnvironment env = dataAccess.getCurrentEnvironment(envName);
env.prepareEndpoints();
}
super.service(request, response);
}