@Override
  public List<GraphObject> doGet(List<VetoableGraphObjectListener> listeners) throws PathException {

    List<? extends GraphObject> results = relationshipConstraint.doGet(listeners);
    long desiredId = idConstraint.getId();
    GraphObject desiredObject = null;

    for (GraphObject obj : results) {
      if (obj.getId() == desiredId) {
        desiredObject = obj;
        break;
      }
    }

    // if object was found, return it
    if (desiredObject != null) {
      List<GraphObject> resultList = new LinkedList<GraphObject>();
      resultList.add(desiredObject);

      return resultList;
    }

    throw new NotFoundException();
  }
 @Override
 public String getUriPart() {
   return relationshipConstraint.getUriPart().concat("/").concat(idConstraint.getUriPart());
 }