/**
   * Construct a new instance from the given {@link VtnFlowCondConfig} instance.
   *
   * @param vfconf A {@link VtnFlowCondConfig} instance.
   * @throws RpcException An error occurred.
   */
  public VTNFlowCondition(VtnFlowCondConfig vfconf) throws RpcException {
    nodeName = vfconf.getName();
    name = FlowCondUtils.checkName(nodeName);

    List<VtnFlowMatch> list = vfconf.getVtnFlowMatch();
    matches = new VtnFlowMatchConverter().initialize(list);
  }
  /**
   * Construct a new instance from the given name and {@link FlowCondition} instance.
   *
   * @param nm The name of the flow condition.
   * @param fcond A {@link FlowCondition} instance.
   * @throws RpcException An error occurred.
   */
  public VTNFlowCondition(String nm, FlowCondition fcond) throws RpcException {
    nodeName = FlowCondUtils.checkName(nm);
    name = nm;

    List<FlowMatch> list = (fcond == null) ? null : fcond.getMatches();
    matches = new FlowMatchConverter().initialize(list);
  }
 /**
  * Verify the contents of this instance.
  *
  * @throws RpcException Verifycation failed.
  */
 public void verify() throws RpcException {
   nodeName = FlowCondUtils.checkName(name);
   matches = new MatchVerifier().initialize(matches);
 }