synchronize self from Ariane server according its id (prioritary) or name
        :return:

def sync(self):
        """
        synchronize self from Ariane server according its id (prioritary) or name
        :return:
        """
        LOGGER.debug("Application.sync")
        params = None
        if self.id is not None:
            params = {'id': self.id}
        elif self.name is not None:
            params = {'name': self.name}

        if params is not None:
            args = {'http_operation': 'GET', 'operation_path': 'get', 'parameters': params}
            response = ApplicationService.requester.call(args)
            if response.rc != 0:
                LOGGER.warning(
                    'Application.sync - Problem while syncing application (name:' + self.name + 'id: ' + str(self.id) +
                    '). Reason: ' + str(response.response_content) + '-' + str(response.error_message) +
                    " (" + str(response.rc) + ")"
                )
            else:
                json_obj = response.response_content
                self.id = json_obj['applicationID']
                self.name = json_obj['applicationName']
                self.description = json_obj['applicationDescription']
                self.short_name = json_obj['applicationShortName']
                self.color_code = json_obj['applicationColorCode']
                if json_obj['applicationCompanyID'] == -1:
                    self.company_id = None
                else:
                    self.company_id = json_obj['applicationCompanyID']
                if json_obj['applicationTeamID'] == -1:
                    self.team_id = None
                else:
                    self.team_id = json_obj['applicationTeamID']
                self.osi_ids = json_obj['applicationOSInstancesID']