code: @Override
      public void handle(String chargingStationId, JsonObject commandObject, IdentityContext identityContext) throws UserIdentityUnauthorizedException {
          ChargingStationId csId = new ChargingStationId(chargingStationId);
  
          if (!commandAuthorizationService.isAuthorized(csId, identityContext.getUserIdentity(), RequestStopTransactionCommand.class)) {
              throw new UserIdentityUnauthorizedException(chargingStationId, identityContext.getUserIdentity(), RequestStopTransactionCommand.class);
          }
  
          try {
              RequestStopTransactionApiCommand command = gson.fromJson(commandObject, RequestStopTransactionApiCommand.class);
  
              ChargingStation chargingStation = repository.findOne(chargingStationId);
              if (chargingStation != null && chargingStation.communicationAllowed()) {
                  TransactionId transactionId = new NumberedTransactionId(csId, chargingStation.getProtocol(), command.getId());
  
                  commandGateway.send(new RequestStopTransactionCommand(csId, transactionId, identityContext), new CorrelationToken());
              }
          } catch (JsonSyntaxException ex) {
              throw new IllegalArgumentException("Configure command not able to parse the payload, is your json correctly formatted?", ex);
          }
      }
docs: {@inheritDoc}