@jexp - createNodeAs currently ignores constraints etc - is this correct or should it take them into account?