(java again) how do you rotate a cloned GamePiece?

I can:

  1. Find a PieceSlot using a specific gpid
  2. create a GamePiece object by cloning an instance of the PieceSlot
  3. create a command to send it to a specific map

but, how can I:

  1. access its FreeRotator decorator (or trait as it’s known in the editor, like the “can pivot” or “can rotate”) so I can set an angle before sending it on a map?