Hello I wonder how this is officially done... or not supported?
As per doc (https://jackrabbit.apache.org/oak/docs/apidocs/org/apache/jackrabbit/oak/plugins/nodetype/write/ReadWriteNodeTypeManager.html), the ReadWriteNodeTypeManager throws an UnsupportedRepositoryOperationException on any registering operation as prescribed by JCR2's NodeTypeManager interface.
Any hints? Thanks, Juerg