class ResumeOrchestrationRequest {

    protected void checkForInProgressRequest(InfraActiveRequests currentActiveRequest,
            HashMap<String, String> instanceIdMap, String requestScope, String instanceName, Action action)
            throws ApiException {
        boolean inProgress = false;
        InfraActiveRequests requestInProgress = requestHandlerUtils.duplicateCheck(action, instanceIdMap, instanceName,
                requestScope, currentActiveRequest);
        if (requestInProgress != null) {
            inProgress = requestHandlerUtils.camundaHistoryCheck(requestInProgress, currentActiveRequest);
        }
        if (inProgress) {
            requestHandlerUtils.buildErrorOnDuplicateRecord(currentActiveRequest, action, instanceIdMap, instanceName,
                    requestScope, requestInProgress);
        }
    }

}