* @param grailsDomainClasses the collection of valid sub-classes
* @return the collection of subclasses, if any
*/
public static Collection getSubClasses(GrailsDomainClass grailsDomainClass, Collection grailsDomainClasses) {
Set subClasses = new HashSet(grailsDomainClass.getSubClasses());
subClasses.retainAll(grailsDomainClasses);
return subClasses;
}
/**
* Get the parent GrailsDomainClass for the given GrailsDomainClass, if it