createHandlerImpl