code: public Optional<BioCNode> getNode(String role) {
      return getNodes().stream().filter(n -> n.getRole().equals(role)).findFirst();
    }
docs: Gets the first node based on the role.
  
  @param role the role of the node
  @return node that has the same role