add function "getInstanceByType" and use it to retrieve instances of KalturaStorageProfile