How to call a java function from Grafana dashboard. Is it possible

How to call a java function from Grafana dashboard. Is it possible? We have some java functionality to perform some operations. Is it possible to call the same function in Grafana dashboard