Calculate inertia tensor rotation


I’m trying to do this:
(the part “Torque Needed to Achieve a Desired Rotation”).
The code their is supposed for the Unity engine. I can translate almost everything into jme3/jbullet code - except this “rigidbody.inertiaTensorRotation”. I wasn’t able to find any method on RigidBodyControl that gives me that. Maybe it is called differently in jbullet? Can I compute this somehow? I tried googling, but was unable to find anything useful.