class GatewayPublicEndpointManagementService extends BasePublicEndpointManagementService {

    public boolean renewCertificate(Stack stack) {
        boolean result = true;
        if (isCertRenewalTriggerable(stack)) {
            LOGGER.info("Renew certificate for stack: '{}'", stack.getName());
            result = generateCertAndSaveForStack(stack);
            if (StringUtils.isEmpty(stack.getCluster().getFqdn())) {
                LOGGER.info("The cluster doesn't have public DNS entry, starting to create one.");
                updateDnsEntryForCluster(stack);
            }
        }
        return result;
    }

}