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("Company.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 = CompanyService.requester.call(args)
            if response.rc != 0:
                LOGGER.warning(
                    'Company.sync - Problem while syncing company (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['companyID']
                self.name = json_obj['companyName']
                self.description = json_obj['companyDescription']
                self.applications_ids = json_obj['companyApplicationsID']
                self.ost_ids = json_obj['companyOSTypesID']