components/src/test/java/eu/internetofus/common/components/service/WeNetServiceSimulatorMocker.java
/**
   * Return the position of the data associated into the identifier of the path.
   *
   * @param ctx to get the identifier from the path.
   *
   * @return the index of the element in the data or {@code -1} if it is not
   *         defined.
   */
Return the position of the data associated into the identifier of the path.
@param ctx to get the identifier from the path.

@return the index of the element in the data or  -1 if it is not
defined.
Return the position of the data associated into the identifier of the path . @param ctx to get the identifier from the path . @return the index of the element in the data or - 1 if it is not defined .
protected int indexOf(final RoutingContext ctx) {
    final var id = ctx.pathParam("id");
    if (id != null) {
      return this.indexOf(id);
    } else {
      return -1;
    }
  }
protected int indexOf ( final RoutingContext ctx ) { final var id = ctx . pathParam ( "id" ) ; if ( id != null ) { return this . indexOf ( id ) ; } else { return - 1 ; } }
Return the position of the data associated into the identifier of the path.
Return the position of the data associated into the identifier of the path .