throw new IllegalArgumentException("Workspace not provided");
}
final Catalog catalog = getCatalog();
final ResourcePool resourcePool = catalog.getResourcePool();
DataAccessFactory dsFactory;
try {
dsFactory = resourcePool.getDataStoreFactory(storeInfo);
} catch (IOException e) {
String msg = (String) new ResourceModel(
"AbstractDataAccessPage.cantGetDataStoreFactory").getObject();
msg += ": " + e.getMessage();
throw new IllegalArgumentException(msg);
}
if (dsFactory == null) {
String msg = (String) new ResourceModel(
"AbstractDataAccessPage.cantGetDataStoreFactory").getObject();
throw new IllegalArgumentException(msg);
}
final IModel model = new CompoundPropertyModel(storeInfo);
final Form paramsForm = new Form("dataStoreForm", model);
add(paramsForm);
paramsForm.add(new Label("storeType", dsFactory.getDisplayName()));
paramsForm.add(new Label("storeTypeDescription", dsFactory.getDescription()));
{
final IModel wsModel = new PropertyModel(model, "workspace");
final IModel wsLabelModel = new ResourceModel("AbstractDataAccessPage.workspace");
workspacePanel = new WorkspacePanel("workspacePanel", wsModel, wsLabelModel, true);