public void handle(String endpointId, JsonRpcParams params) throws JsonRpcException { checkNotNull(endpointId, "Endpoint ID must not be null"); checkArgument(!endpointId.isEmpty(), "Endpoint ID must not be empty"); checkNotNull(params, "Params must not be null"); Log.debug(getClass(), "Handling notification from: " + endpointId + ", with params: " + params); biOperation.apply(endpointId, params.getAs(paramsClass)); }