}
RequestContainer reqContainer = new RequestContainer();
ResponseContainer resContainer = new ResponseContainer();
reqContainer.setServiceRequest(request);
resContainer.setServiceResponse(resp);
DefaultRequestContext defaultRequestContext = new DefaultRequestContext(
reqContainer, resContainer);
resContainer.setErrorHandler(new EMFErrorHandler());
RequestContainer.setRequestContainer(reqContainer);
ResponseContainer.setResponseContainer(resContainer);
Locale locale = new Locale("it","IT","");
SessionContainer session = new SessionContainer(true);
reqContainer.setSessionContainer(session);
SessionContainer permSession = session.getPermanentContainer();
IEngUserProfile profile =UserProfile.createSchedulerUserProfile();
permSession.setAttribute(IEngUserProfile.ENG_USER_PROFILE, profile);
errorHandler = defaultRequestContext.getErrorHandler();
reqContainer.setAttribute("model_node_instance", modelInstanceId);
reqContainer.setAttribute("start_date", beginDate);
reqContainer.setAttribute("end_date", endDate);
reqContainer.setAttribute("cascade", cascade);
reqContainer.setAttribute("recalculate_anyway", "true");