if (node.hasProperty(PROPERTY_PATH_PREFIX))
r.pathPrefix = node.getProperty(PROPERTY_PATH_PREFIX).getString();
if (node.hasProperty(PROPERTY_PRIORITY))
r.priority = (int) node.getProperty(PROPERTY_PRIORITY).getLong();
if (node.hasProperty(PROPERTY_TEMPLATE))
r.templateModel = new BrixNodeModel((BrixNode) node.getProperty(PROPERTY_TEMPLATE).getNode());
if (node.hasProperty(PROPERTY_TYPE))
r.type = Type.valueOf(node.getProperty(PROPERTY_TYPE).getString());
if (node.hasProperty(PROPERTY_EXTENSIONS))
r.extensions = node.getProperty(PROPERTY_EXTENSIONS).getString();