[CXF-5892] Ensure EncryptedKey references BST before it