repositoryModel.create("repo2");
assertTrue(repositoryModel.waitUntilRepositoryInState("repo2", RepositoryLifecycleState.ACTIVE, 60000L));
repositoryModel.close();
// Make a schema
TypeManager typeMgr = client.getDefaultRepository().getTypeManager();
QName field1 = new QName("ns", "f1");
FieldType fieldType1 = typeMgr.newFieldType(typeMgr.getValueType("STRING"), field1, Scope.NON_VERSIONED);
fieldType1 = typeMgr.createFieldType(fieldType1);
QName field2 = new QName("ns", "f2");
FieldType fieldType2 = typeMgr.newFieldType(typeMgr.getValueType("STRING"), field2, Scope.NON_VERSIONED);
fieldType2 = typeMgr.createFieldType(fieldType2);
QName typeName = new QName("ns", "rt1");
RecordType recordType = typeMgr.newRecordType(typeName);
recordType.addFieldTypeEntry(fieldType1.getId(), false);
recordType.addFieldTypeEntry(fieldType2.getId(), false);
recordType = typeMgr.createRecordType(recordType);
DecoratingRepositoryManager repositoryMgr = (DecoratingRepositoryManager)lilyProxy.getLilyServerProxy()
.getLilyServerTestingUtility().getRuntime().getModuleById("repository")
.getApplicationContext().getBean("repositoryManager");
IdentityHashMap<Object, Object> chains = new IdentityHashMap<Object, Object>();