code: public void createClonedActionState(final Flow flow, final String actionStateId, final String actionStateIdToClone) {
          val generateServiceTicket = getState(flow, actionStateIdToClone, ActionState.class);
          val consentTicketAction = createActionState(flow, actionStateId);
          cloneActionState(generateServiceTicket, consentTicketAction);
      }
docs: Clone and create action state.
  
  @param flow                 the flow
  @param actionStateId        the action state id
  @param actionStateIdToClone the action state id to clone