* @throws EMFUserError the EMF user error
*/
private ExecutionInstance createExecutionInstance(Integer biobjectId, String aRoleName, IEngUserProfile profile, SourceBean request, String modality) throws EMFUserError {
// create execution id
UUIDGenerator uuidGen = UUIDGenerator.getInstance();
UUID uuidObj = uuidGen.generateTimeBasedUUID();
String executionId = uuidObj.toString();
executionId = executionId.replaceAll("-", "");
// find execution flow id; it is not specified, it means that a new flow is starting, so it is set to execution id value
String executionFlowId = (String) request.getAttribute("EXECUTION_FLOW_ID");
logger.debug("Execution flow id request parameter: " + executionFlowId);