PLAT-23050: check that the flavor has "getLanguage" callable function "flavor" could be of type "flavorParams" which not have "getLanguage" method (the assumption that "flavor" is of "asset" type was wrong) revert of https://github.com/kaltura/server/pull/10302/commits/d1bb9ca5785c155606e586aa2b72ecb7f2b6156f
PLAT-23050: check that the flavor has "getLanguage" callable function
"flavor" could be of type "flavorParams" which not have "getLanguage" method (the assumption that "flavor" is of "asset" type was wrong)
revert of https://github.com/kaltura/server/pull/10302/commits/d1bb9ca5785c155606e586aa2b72ecb7f2b6156f

kaltura/server,kaltura/server,kaltura/server,kaltura/server,kaltura/server,kaltura/server