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