Lock bone in space without changing animation

I have mocap data stream coming to Unreal. So i need to fix head position and rotation in space (like locking hip in 0,0,0), without changing skeleton pose. I have prototype, using animBP with regulat, but it is not fast enough, so i need to only use AnimGraph. In AnimGraph i managed to fix head position, but not rotation. Can you guys help me?