Hello, so in this method you are basically trying to take the id and object type and get the codeName ( the out param ) of your kentico object to be set from that. To do that you could do something like:
//get the codename and assign it to the out paramater
codeName = AccountStatusInfoProvider.GetCodeName(objectType, id);
you could also set the sitename to be more specific if you are trying to deal with only one site.
You can try setting just the codename and see if it helps your current code