You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: SOFAconvertUMA2SOFA.m
    path of file: ./repos/SOFAtoolbox/SOFAtoolbox/converters
    
    the code of the file until where you have to start completion: function Obj=SOFAconvertUMA2SOFA(UMA)
%SOFAconvertUMA2SOFA - converts from UMA to SOFA format
%   Usage: OBJ=SOFAconvertARI2SOFA(UMA) 
% 
%   SOFAconvertUMA2SOFA converts audio data in UMA (University of Malaga) mat format and converts it to a SOFA object.
%
%   Input parameters:
%     UMA : Audio data in UMA format
% 
%   Output parameters:
%     Obj : New SOFA object (SOFA format)

% #Author: Michael Mihocic (07.07.2023)
%
% Copyright (C) Acoustics Research Institute - Austrian Academy of Sciences;
% Licensed under the EUPL, Version 1.2 or – as soon they will be approved by the European Commission - subsequent versions of the EUPL (the "License")
% You may not use this work except in compliance with the License.
% You may obtain a copy of the License at: https://joinup.ec.europa.eu/software/page/eupl
% Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
% See the License for the specific language governing  permissions and limitations under the License. 


    
function Obj=SOFAconvertUMA2SOFA(UMA)
%SOFAconvertUMA2SOFA - converts from UMA to SOFA format
%   Usage: OBJ=SOFAconvertARI2SOFA(UMA) 
% 
%   SOFAconvertUMA2SOFA converts audio data in UMA (University of Malaga) mat format and converts it to a SOFA object.
%
%   Input parameters:
%     UMA : Audio data in UMA format
% 
%   Output parameters:
%     Obj : New SOFA object (SOFA format)

% #Author: Michael Mihocic (07.07.2023)
%
% Copyright (C) Acoustics Research Institute - Austrian Academy of Sciences;
% Licensed under the EUPL, Version 1.2 or – as soon they will be approved by the European Commission - subsequent versions of the EUPL (the "License")
% You may not use this work except in compliance with the License.
% You may obtain a copy of the License at: https://joinup.ec.europa.eu/software/page/eupl
% Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
% See the License for the specific language governing  permissions and limitations under the License. 


%% Get an empty conventions structure
Obj = SOFAgetConventions('AnnotatedReceiverAudio');

%% Fill data with data

if isfield(UMA.Data,'Sample') 
    Obj.Data.Receiver=UMA.Data.Sample; % old versions
elseif isfield(UMA.Data,'Receiver')
    Obj.Data.Receiver=UMA.Data.Receiver;
end