code: private Message messageFromBuffer(ByteBuffer request) throws InternalException {
      if (request != null) {
        Message m;
        try {
          m = parser.createMessage(request);
          return m;
        }
        catch (AvpDataException e) {
          throw new InternalException("Failed to decode message.", e);
        }
      }
      return null;
    }
docs: /* (non-Javadoc)
  @see org.jdiameter.common.impl.app.AppSessionImpl#relink(org.jdiameter.client.api.IContainer)