public SchemaDef add(DocumentType source) {
        sources.registerDocumentType(source);
        return this;
    }
Adds a document that can be mapped to this schema.

@param source a document that can be mapped to this schema.
@return Itself for chaining.
config-model/src/main/java/com/yahoo/vespa/documentmodel/SchemaDef.java