*/
private AssociationPath getSubCriteriaAssociationPath(Subcriteria subCriteria){
List<AssociationPathElement> elementList = new ArrayList<AssociationPathElement>();
elementList.add(new AssociationPathElement(subCriteria.getPath()));
Subcriteria currentSubCriteria = subCriteria;
while (currentSubCriteria.getParent() != null
&& Subcriteria.class.isAssignableFrom(currentSubCriteria.getParent().getClass())) {
currentSubCriteria = Subcriteria.class.cast(currentSubCriteria.getParent());
elementList.add(0, new AssociationPathElement(currentSubCriteria.getPath()));
}
return new AssociationPath(elementList.toArray(new AssociationPathElement[0]));
}