@SuppressWarnings("unchecked")
  @Override
  public <T extends BesuService> Optional<T> getService(final Class<T> serviceType) {
    return Optional.ofNullable((T) serviceRegistry.get(serviceType));
  }
Add service.

@param <T> the type parameter
@param serviceType the service type
@param service the service
app/src/main/java/org/hyperledger/besu/services/BesuPluginContextImpl.java