code: public static CarbonExtension from(Message msg) {
          CarbonExtension cc = msg.getExtension(Direction.received.name(), NAMESPACE);
          if (cc == null)
              cc = msg.getExtension(Direction.sent.name(), NAMESPACE);
          return cc;
      }
docs: Obtain a Carbon from a message, if available.
  <p>
  Only {@link Message} instances can contain a Carbon extensions.
  </p>
  
  @param msg Message object to check for carbons
  
  @return a Carbon if available, null otherwise.