if (forceSyncLit != null) {
try {
setForceSync(forceSyncLit.booleanValue());
}
catch (IllegalArgumentException e) {
throw new SailConfigException("Boolean value required for " + FORCE_SYNC + " property, found "
+ forceSyncLit);
}
}
Literal valueCacheSizeLit = GraphUtil.getOptionalObjectLiteral(graph, implNode, VALUE_CACHE_SIZE);
if (valueCacheSizeLit != null) {
try {
setValueCacheSize(valueCacheSizeLit.intValue());
}
catch (NumberFormatException e) {
throw new SailConfigException("Integer value required for " + VALUE_CACHE_SIZE
+ " property, found " + valueCacheSizeLit);
}
}
Literal valueIDCacheSizeLit = GraphUtil.getOptionalObjectLiteral(graph, implNode,
VALUE_ID_CACHE_SIZE);
if (valueIDCacheSizeLit != null) {
try {
setValueIDCacheSize(valueIDCacheSizeLit.intValue());
}
catch (NumberFormatException e) {
throw new SailConfigException("Integer value required for " + VALUE_ID_CACHE_SIZE
+ " property, found " + valueIDCacheSizeLit);
}
}
Literal namespaceCacheSizeLit = GraphUtil.getOptionalObjectLiteral(graph, implNode,
NAMESPACE_CACHE_SIZE);
if (namespaceCacheSizeLit != null) {
try {
setNamespaceCacheSize(namespaceCacheSizeLit.intValue());
}
catch (NumberFormatException e) {
throw new SailConfigException("Integer value required for " + NAMESPACE_CACHE_SIZE
+ " property, found " + namespaceCacheSizeLit);
}
}
Literal namespaceIDCacheSizeLit = GraphUtil.getOptionalObjectLiteral(graph, implNode,
NAMESPACE_ID_CACHE_SIZE);
if (namespaceIDCacheSizeLit != null) {
try {
setNamespaceIDCacheSize(namespaceIDCacheSizeLit.intValue());
}
catch (NumberFormatException e) {
throw new SailConfigException("Integer value required for " + NAMESPACE_ID_CACHE_SIZE
+ " property, found " + namespaceIDCacheSizeLit);
}
}
}
catch (GraphUtilException e) {
throw new SailConfigException(e.getMessage(), e);
}
}