I have a Java utility package, which can be used by multiple services(written in Java) for performing some utility tasks.

Lets say the Java utility package name is U and one of the Service be S. Now S calls a function F of U.

My question is, whether there is a way where function F of package U is able to determine which service S has called it ?
There can be multiple services S1, S2, ... , Sn calling F. I need to know upon a call, which Service Sx is calling that particular F.