code: public static Datatype getDatatype(String datatypeKey) 
  	{	
  		Datatype dt = null;
  		if(containsIdOrName(datatypeKey))
  			dt = datatypesHash.get(datatypeKey.toUpperCase());
  		else if(containsUri(datatypeKey)) 
  			dt = datatypesHash.get(datatypeKey);
  		else
  			throw new IllegalArgumentException("Datatype not found : " + datatypeKey);
  		
  		if(!useObsoleteDatatypes 
  				&& dt.isObsolete() != null 
  				&& dt.isObsolete().booleanValue() == true)
  			throw new IllegalArgumentException("Datatype " +
  				datatypeKey + "(" + dt.getName() + ") is obsolete" +
  					" (and useObsoleteDatatypes=false)");
  		
  		// return 
  		return dt;
  	}
docs: Gets Miriam Datatype by its ID, Name, Synonym, or URI (URN/URL)
  
  @param datatypeKey - a datatype ID, name, synonym, or URI
  @return MIRIAM Datatype bean
  
  @throws IllegalArgumentException when not found