class AbstractBuilder {

    protected synchronized String getRequestId(DelegateExecution execution) {
        if (StringUtils.isBlank(requestId)) {
            requestId = (String) execution.getVariable("msoRequestId");
            if (StringUtils.isBlank(requestId)) {
                requestId = UUID.randomUUID().toString();
            }
        }
        return requestId;
    }

}