code: public void init() {
          nodeState = StateHelper.getStateImpl();
          try {
              nodeState.load();
          } catch (Exception ex) {
            throw new RuntimeException(ex);
          }
          nodesSet = nodeState.getNodes();
          Iterator it = nodesSet.iterator();
          allNodes = new Node[nodesSet.size()];
          int i = 0;
          while (it.hasNext()) {
              allNodes[i++] = (Node) it.next();
          }
          isInit = true;
      }
docs: Initialization