code: public Action build() {
      Action toReturn = new BuiltAction(driver, new LinkedHashMap<>(sequences), action);
      action = new CompositeAction();
      sequences.clear();
      return toReturn;
    }
docs: Generates a composite action containing all actions so far, ready to be performed (and
  resets the internal builder state, so subsequent calls to {@link #build()} will contain fresh
  sequences).
  
  @return the composite action