added TryGetClassInParent