added a section for describing how to extend the middleware adapter