public void putGrammar(SchemaGrammar grammar){
  if (grammar.getTargetNamespace() == null)   fNoNSGrammar=grammar;
 else   fGrammarRegistry.put(grammar.getTargetNamespace(),grammar);
}

public void putGrammar ( SchemaGrammar grammar ) { if ( grammar . getTargetNamespace ( ) == null ) fNoNSGrammar = grammar ; else fGrammarRegistry . put ( grammar . getTargetNamespace ( ) , grammar ) ; }
put a schema grammar into the registry this method is for internal use only : it assumes that a grammar with the same target namespace is not already in the bucket .
