code: public Weld addExtension(Extension extension) {
          extensions.add(new MetadataImpl<Extension>(extension, SYNTHETIC_LOCATION_PREFIX + extension.getClass().getName()));
          return this;
      }
docs: Add an extension to the set of extensions.
  
  @param extension an extension