Modified the order of calls on the servlet to assign the non-blocking event handlers implemented in the resource before the async I/O begins to execute.