Metadata support to retrieve and revise solutions in case-based reasoning