code: public void addMember(PdfLayer layer) {
          if (!layers.contains(layer)) {
              members.add(layer.getRef());
              layers.add(layer);
          }
      }
docs: Adds a new member to the layer.
  @param layer the new member to the layer