Renaming Type to DocumentType to avoid clashes in xml config