ELA ON A MEAN VALUE THEOREM IN THE CLASS OF HERGLOTZ FUNCTIONS AND ITS APPLICATIONS