@Override public Set<String> getSenseAlignments(String senseId) throws SenseInventoryException, UnsupportedOperationException { if (inventory instanceof SenseAlignment) { return ((SenseAlignment) inventory).getSenseAlignments(senseId); } else { throw new UnsupportedOperationException(); } }