for (Value member : model.filter(implNode, MEMBER, null).objects()) {
if (member instanceof Resource) {
addMember(RepositoryImplConfigBase.create(model, (Resource)member));
}
else {
throw new StoreConfigException("Found literal for federation member node, expected a resource");
}
}
for (Value space : model.filter(implNode, LOCALPROPERTYSPACE, null).objects()) {
addLocalPropertySpace(space.stringValue());
}
try {
Literal distinctLit = model.filter(implNode, DISTINCT, null).objectLiteral();
if (distinctLit != null) {
try {
distinct = distinctLit.booleanValue();
}
catch (IllegalArgumentException e) {
throw new StoreConfigException(
"Invalid boolean value for <distinct> parameter in federation config: " + distinctLit);
}
}
}
catch (ModelException e) {
throw new StoreConfigException("Invalid or inconsistent <distinct> parameter for federation config");
}
try {
Literal readOnlyLit = model.filter(implNode, READ_ONLY, null).objectLiteral();
if (readOnlyLit != null) {
try {
readOnly = readOnlyLit.booleanValue();
}
catch (IllegalArgumentException e) {
throw new StoreConfigException(
"Invalid boolean value for <readOnly> parameter in federation config: " + readOnlyLit);
}
}
}
catch (ModelException e) {
throw new StoreConfigException("Invalid or inconsistent <readOnly> parameter for federation config");
}
}