@CommandHandler public void handle(RequestDiagnosticsCommand command) { checkCommandAllowed(command.getIdentityContext(), command.getClass()); checkCommunicationAllowed(); apply(new DiagnosticsRequestedEvent(this.id, this.protocol, command.getDiagnosticsUploadSettings(), command.getIdentityContext())); }