code: private ODocument getEdgeWithPossibleId(String start, String end, List<String> ids) {
          List<ODocument> edges = getEdgesBetweenModels(start, end);
          for (ODocument edge : edges) {
              if (ids.contains(OrientModelGraphUtils.getIdFieldValue(edge))) {
                  return edge;
              }
          }
          return edges.size() != 0 ? edges.get(0) : null;
      }
docs: Returns an edge between the start and the end model. If there is an edge which has an id which is contained in
  the given id list, then this transformation is returned. If not, then the first found is returned.