/** * Creates a new flow in this use case. * * @param flowName * the name of the flow to be created. * @return the newly created flow * @throws ElementAlreadyInModel * if a flow with the specified name already exists in the use case */ Flow newFlow(String flowName) { Flow flow = new Flow(flowName, this); saveModelElement(flow, nameToFlowMap); return flow; }