}
  private void setActions(String str)  {    if ("read".equals(str))      actions = READ;    else if ("write".equals(str))      actions = WRITE;    else if ("read,write".equals(str) || "write,read".equals(str))      actions = READ | WRITE;    else      throw new IllegalArgumentException("illegal action " + str);  }