* Abstract out the Logicsheet creation. Handles both Named and regular logicsheets.
*/
private Logicsheet createLogicsheet(Configuration configuration, boolean named)
throws Exception
{
Parameters params = Parameters.fromConfiguration(configuration);
Logicsheet logicsheet;
if (named) {
String location = params.getParameter("href", null);
String uri = params.getParameter("uri", null);
String prefix = params.getParameter("prefix", null);
NamedLogicsheet namedLogicsheet =
new NamedLogicsheet(location, manager, urlResolver);
namedLogicsheet.setLogger(getLogger());
namedLogicsheet.setURI(uri);
namedLogicsheet.setPrefix(prefix);
logicsheet = namedLogicsheet;
} else {
String location = params.getParameter("core-logicsheet", null);
logicsheet = new Logicsheet(location, manager, urlResolver);
logicsheet.setLogger(getLogger());
}
String logicsheetName = logicsheet.getSystemId();