public AemTags addTag(String tag) throws DeniedTagException {
  input.click();
  input.sendKeys(" ");
  StringTokenizer tagElements=new StringTokenizer(tag,"/",true);
  final int tagsCount=getTagCount();
  while (tagElements.hasMoreTokens()) {
    input.sendKeys(tagElements.nextToken());
  }
  waitUntilTagCreated(tagsCount);
  AemTagItem item=getLastAddedTag();
  if (item.isDenied()) {
    throw new DeniedTagException();
  }
  return this;
}

public AemTags addTag ( String tag ) throws DeniedTagException { input . click ( ) ; input . sendKeys ( " " ) ; StringTokenizer tagElements = new StringTokenizer ( tag , "/" , true ) ; final int tagsCount = getTagCount ( ) ; while ( tagElements . hasMoreTokens ( ) ) { input . sendKeys ( tagElements . nextToken ( ) ) ; } waitUntilTagCreated ( tagsCount ) ; AemTagItem item = getLastAddedTag ( ) ; if ( item . isDenied ( ) ) { throw new DeniedTagException ( ) ; } return this ; }
adds a tag . assumed format of tag attribute : namespace : tag1 / tag2 / tag3 or tag1 / tag2 / tag3 if creating tag in default namespace .
