code: protected IoBuffer encodeCommand(Notify invoke) {
          IoBuffer out = IoBuffer.allocate(1024);
          out.setAutoExpand(true);
          encodeCommand(out, invoke);
          return out;
      }
docs: Encode notification event.
  
  @param invoke
  Notification event
  @return Encoded event data