} else if (!name.equals(Repository.class.getName())
&& !name.equals(LocalAdapterFactory.class.getName())) {
environment.put(name, getInitParameter(name));
}
}
return new JNDIRemoteRepositoryFactory(
getLocalAdapterFactory(),
new InitialContext(environment), location).getRepository();
} catch (NamingException e) {
throw new RepositoryException(
"Repository not found: Invalid JNDI context", e);