code: private DNode searchFrontendNode() {
          DNode result = DNode.NOT_FOUND;
          
          for (DNode node : nodes) {
              if (node.getFrontend()) {
                  result = node;
                  break;
              }
          }
          return result;
      }
docs: Searches the first node with "frontend" property set to true