Find sub-model from subModelTypeAttribute in a recursive manner to support mulitple levels of inheritance.