code: public int getTypeIdFor(String slashname, boolean allocateIfNotFound) {
  		if (allocateIfNotFound) {
  			return NameRegistry.getIdOrAllocateFor(slashname);
  		}
  		else {
  			return NameRegistry.getIdFor(slashname);
  		}
  	}
docs: Lookup the type ID for a string. First checks those allocated but not yet registered, then those that are already
  registered. If not found then a new one is allocated and recorded.
  
  @param slashname the slashed type name, eg. a/b/c/D
  @param allocateIfNotFound determines whether an id should be allocated for the type if it cannot be found
  @return the unique ID number