I am looking at dynamically adding a content type as well as its properties based on user input. I understand it is possible to generate a custom model xml and set the property "cm:modelActive" to true. I was exploring if this can be done programmatically in Java.