}
public Repository getRepository(RepositoryImplConfig config)
throws StoreConfigException
{
HTTPRepository result = null;
if (config instanceof HTTPRepositoryConfig) {
HTTPRepositoryConfig httpConfig = (HTTPRepositoryConfig)config;
result = new HTTPRepository(httpConfig.getURL());
result.setSubjectSpace(httpConfig.getSubjectSpace());
result.setReadOnly(httpConfig.isReadOnly());
// result.setUsernameAndPassword(httpConfig.getUsername(),
// httpConfig.getPassword());
}
else {
throw new StoreConfigException("Invalid configuration class: " + config.getClass());