node = parent.addNode(name);
}
if ( properties != null ) {
// create modifiable map
final JcrModifiableValueMap jcrMap = new JcrModifiableValueMap(node, this.dynamicClassLoader);
// check mixin types first
final Object value = properties.get(NodeUtil.MIXIN_TYPES);
if ( value != null ) {
jcrMap.put(NodeUtil.MIXIN_TYPES, value);
}
for(final Map.Entry<String, Object> entry : properties.entrySet()) {
if ( !IGNORED_PROPERTIES.contains(entry.getKey()) ) {
try {
jcrMap.put(entry.getKey(), entry.getValue());
} catch (final IllegalArgumentException iae) {
try {
node.remove();
} catch ( final RepositoryException re) {
// we ignore this