code: private String getRelatedIDs(SmallMoleculeReference smr)
  	{
  		String ids = smr.getUri();
  
  		for (Object o : new PathAccessor(
  			"SmallMoleculeReference/entityReferenceOf").getValueFromBean(smr))
  		{
  			SimplePhysicalEntity spe = (SimplePhysicalEntity) o;
  			ids += "\n" + spe.getUri();
  		}
  		return ids;
  	}
docs: Gets IDs of the small molecule reference and its physical entities.
  @param smr small molecule reference
  @return related IDs