public Repository(String domain,boolean fairLock){
  lock=new ReentrantReadWriteLock(fairLock);
  domainTb=new HashMap<String,Map<String,NamedObject>>(5);
  if (domain != null && domain.length() != 0)   this.domain=domain.intern();
 else   this.domain=ServiceName.DOMAIN;
  domainTb.put(this.domain,new HashMap<String,NamedObject>());
}

public Repository ( String domain , boolean fairLock ) { lock = new ReentrantReadWriteLock ( fairLock ) ; domainTb = new HashMap < String , Map < String , NamedObject > > ( 5 ) ; if ( domain != null && domain . length ( ) != 0 ) this . domain = domain . intern ( ) ; else this . domain = ServiceName . DOMAIN ; domainTb . put ( this . domain , new HashMap < String , NamedObject > ( ) ) ; }
construct a new repository with the given default domain .
