code: public Metadata registerMetadata(String name, Connector c, File archive)
     {
        Metadata md = new MetadataImpl(name, c, archive);
        metadataRepository.registerMetadata(md);
        return md;
     }
docs: Register a metadata instance with the repository
  @param name The name
  @param c The connector metadata
  @param archive The archive
  @return The metadata instance registered