class ExecuteBuildingBlockRainyDay {

    public void setRetryTimer(DelegateExecution execution) {
        try {
            int retryDurationMult = Integer.parseInt(this.environment.getProperty(retryDurationPath));
            int retryCount = (int) execution.getVariable("retryCount");
            int retryTimeToWait = (int) Math.pow(retryDurationMult, retryCount) * 10;
            String RetryDuration = "PT" + retryTimeToWait + "S";
            execution.setVariable("RetryDuration", RetryDuration);
        } catch (Exception e) {
            logger.error("Exception occurred", e);
            throw new BpmnError("Unknown error incrementing retry counter");
        }
    }

}