system.child(JCR_NODE_TYPES)
.setProperty(JCR_PRIMARYTYPE, NT_REP_NODE_TYPES, Type.NAME);
system.child(VersionConstants.JCR_ACTIVITIES)
.setProperty(JCR_PRIMARYTYPE, VersionConstants.REP_ACTIVITIES, Type.NAME);
}
<BUG>if (!root.hasChildNode(IndexConstants.INDEX_DEFINITIONS_NAME)) {

NodeBuilder index = IndexUtils.getOrCreateOakIndex(root);
</BUG>
IndexUtils.createIndexDefinition(index, "uuid", true, true,

system.child(JCR_NODE_TYPES)
.setProperty(JCR_PRIMARYTYPE, NT_REP_NODE_TYPES, Type.NAME);
system.child(VersionConstants.JCR_ACTIVITIES)
.setProperty(JCR_PRIMARYTYPE, VersionConstants.REP_ACTIVITIES, Type.NAME);
}
if (!builder.hasChildNode(IndexConstants.INDEX_DEFINITIONS_NAME)) {
NodeBuilder index = IndexUtils.getOrCreateOakIndex(builder);
IndexUtils.createIndexDefinition(index, "uuid", true, true,
