1. A method comprising: providing a plurality of record profiles including information that uniquely defines how a new record is to be declared; providing a plurality of mapping definitions including a set of rules to select a particular record profile, each mapping definition being associated with only one document class; receiving a new document; applying said set of rules to said new document until a matching record profile is found; and using said matching record profile to declare a new record for said new document.