private void extendTrialByDomain(TrialInstanceUpdateDto trialInstanceUpdateDto) {

    if (isNullOrEmpty(trialInstanceUpdateDto.getDomain())) {
      throw new CSWebApplicationException(StringDefs.GENERAL_ERROR_CODE, "Domain value empty!");
    }

    Product product = getTrialExtensionProduct(trialInstanceUpdateDto);

    if (product == null) {
      throw new CSWebApplicationException(StringDefs.GENERAL_ERROR_CODE, "Product does not exist!");
    }

    List<TrialInstance> trialInstances =
        trialInstanceDao.findTrialInstancesForMatchingDomainAndProduct(
            trialInstanceUpdateDto.getDomain(), product);
    extendTrialInstanceExpiration(trialInstances, trialInstanceUpdateDto);
  }