I have a UML model, a hierarchy of UML classes which are connected by dependency to each other. A defined UML profile is applied on this model. In the transformation, I want to distinguish if a specific class is leaf or not. The only property that I know about each class is "clientDependency". When this property is not set, it means that the class is the root class. But I don't know how I can write the rules to specify the leaf classes. It would be great if anyone can give a clue.