class DefinitionResolver {

    public BPMNEdge getEdge(String elementId) {
        return definitions.getDiagrams().stream()
                .map(BPMNDiagram::getPlane)
                .map(plane -> getEdge(plane, elementId))
                .filter(Objects::nonNull)
                .findFirst().orElse(null);
    }

    public  DefinitionResolver(
            Definitions definitions,
            Collection<WorkItemDefinition> workItemDefinitions,
            boolean jbpm,
            Mode mode);
    public  DefinitionResolver(Definitions definitions,
                              Collection<WorkItemDefinition> workItemDefinitions);

}