Get status(warning,idle,busy) of a BuildEngine using Java Client API

I want to get the status of each buildEngine using the client API for knowing which engines are idle and are under warning condition . I was able to list the build engines under the team repository using the reference https://jazz.net/forum/questions/88881/how-to-get-the-iteambuildservice . However in cases with buildengine under idle and warning condition the buildEngine.isActive() always returns true. Or is there any other way to get the status of the build engine ?
One answer

Using https://www.google.com/search?q=API+build+engine+status+site%3Ajazz.net I found this answer
https://jazz.net/forum/questions/107388/api-call-to-get-rtc-engine-build-activity/109583
Maybe that (or some other hits from above) gives the information needed.
I have no further suggestions to make, unfortunately.