@Override public List<Widget> findByObjectId(Path directory, String objectId) throws IOException { List<Widget> findIn = new ArrayList<>(); List<Widget> widgets = getAll(directory); for (Widget otherWidget : widgets) { if (otherWidget.getTemplate().contains("<" + Widget.spinalCase(objectId))) { findIn.add(otherWidget); } } return findIn; }