Added subsumption aware traversal of class hierarchy when creating CBD.