if (typeLit != null) {
SailFactory factory = SailRegistry.getInstance().get(typeLit.getLabel());
if (factory == null) {
throw new StoreConfigException("Unsupported Sail type: " + typeLit.getLabel());
}
sailImplConfig = factory.getConfig();
sailImplConfig.parse(model, sailImplNode);
}
}
}
catch (ModelException e) {
throw new StoreConfigException(e.getMessage(), e);
}
}