code: public static Message parseMessage(Class<Message> klass, InputStream in) {
      Method parseMethod = parseMethodFor(klass);
      return parseMessage(parseMethod, in);
    }
docs: Parse the message in a given Message container
  @param klass the class containing the message
  @param in the input stream
  @return the parsed Message