class ResumeOrchestrationRequest {

    protected HashMap<String, String> setInstanceIdMap(InfraActiveRequests infraActiveRequest, String requestScope) {
        HashMap<String, String> instanceIdMap = new HashMap<>();
        ModelType type;
        try {
            type = ModelType.valueOf(requestScope);
            instanceIdMap.put(type.name() + "InstanceId", type.getId(infraActiveRequest));
        } catch (IllegalArgumentException e) {
            logger.error("requestScope \"{}\" does not match a ModelType enum.", requestScope);
        }
        return instanceIdMap;
    }

}