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 ; }
Gets IDs of the small molecule reference and its physical entities .