LevelUpgrader extends AbstractTraverser implements ModelFilter { static public String getLocalId(BioPAXElement bpe) { String id = bpe.getUri(); return (id != null) ? id.replaceFirst("^.+[#/]", "") : null; } LevelUpgrader();  LevelUpgrader(BioPAXFactory factory); Model filter(Model model); static String getLocalId(BioPAXElement bpe);  }
@Test public final void testGetLocalId() { BioPAXElement bpe = BioPAXLevel.L2.getDefaultFactory().create("protein", "http: assertEquals("someid",LevelUpgrader.getLocalId(bpe)); bpe = BioPAXLevel.L2.getDefaultFactory().create("protein", "http: assertEquals("someid",LevelUpgrader.getLocalId(bpe)); }