code: public static String[] getLocations(String datatypeKey, String entityId)
      {
         	Set<String> locations = new HashSet<String>();
  		Datatype datatype = getDatatype(datatypeKey);
  		for (Resource resource : getResources(datatype)) {
  			String link = resource.getDataEntry();
  			try {
  				link = link.replaceFirst("\\$id", URLEncoder.encode(entityId, "UTF-8"));
  			} catch (UnsupportedEncodingException e) {
  				throw new RuntimeException(e);
  			}
  			locations.add(link);
  		}
      	return locations.toArray(ARRAY_OF_STRINGS);
      }
docs: Retrieves the physical locationS (URLs) of web pageS providing knowledge about an entity.
  
  @param datatypeKey name (can be a synonym), ID, or URI of a data type (examples: "Gene Ontology", "UniProt")
  @param entityId identifier of an entity within the given data type (examples: "GO:0045202", "P62158")
  @return physical locationS (URL templates) of web pageS providing knowledge about the given entity
  
  @throws IllegalArgumentException when datatype not found