protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
// Retrieves the servlet context.
ServletContext context = getServletContext();
// Retrieves the scheduler.
Scheduler scheduler = (Scheduler) context
.getAttribute(Constants.SCHEDULER);
// Retrieves the executors.
TaskExecutor[] executors = scheduler.getExecutingTasks();
// Registers the executors in the request.
req.setAttribute("executors", executors);
// Action requested?
String action = req.getParameter("action");
if ("pause".equals(action)) {