adapting userinterface by uno or registry

Hello

I'm running libreoffice controlled by uno and would like to modify the user
interface under certain conditions. So using uno or adjusting the users
registrymodifications.xcu are my preferred techniques to accomplish the
following:
a) the menu item file > "save as" needs always to be hidden or removed
b) the panel "This document is open in read-only mode. Edit document" needs
to be hidden or removed (at least the edit button) under certain conditions

I tried to hook the registry by setting
or.openoffice.Office.UI.Commands:LabelType['.uno:SaveAs'], isExperimental
to boolean false, but couldn't get it work.

Can someone give an advice?

Thank you!
Martin