public MondrianServer createWithRepository(
RepositoryContentFinder contentFinder,
CatalogLocator catalogLocator)
{
if (catalogLocator == null) {
catalogLocator = new IdentityCatalogLocator();
}
final Repository repository;
if (contentFinder == null) {
// NOTE: registry.staticServer is initialized by calling this
// method; this is the only time that it is null.