Creating a TLE from base code from GorgiAstro

I just found this post:

Generation of TLE - Orekit development - Orekit

And it looks like the approach you are using used an Orbit object for the spacecraft states. The only difficulty is I don’t have an orbit as a spacecraft state, but rather an AbsolutePV coordinate. Is there a different approach that would be better to use, or is there some way to turn my PV coordinates into an orbit rather that I am just not seeing?