I am trying to create a new node but not success. How could I perform it? Basicly I want to copy a node and change its content.final String NAMESPACE = "http://www.alfresco.org/model/demoscripts/1.0";
final QName PROP_QNAME_MY_PROPERTY = QName.createQName("custom.model", "myProperty");
…
…
NodeRef newNodeRef = getNodeService().createNode(parentRef, ContentModel.ASSOC_CONTAINS, QName.createQName(NAMESPACE, newNodeName), PROP_QNAME_MY_PROPERTY).getChildRef();
I get this exceptionjava.lang.IllegalArgumentException: Class {custom.model}myProperty has not been defined in the data dictionaryHow can I create node simply? Could you please help me?