public CharacterData createCharacterData(Characters characters){
  String data=characters.getData();
  if (characters.isCData()) {
    return factory.createCDATA(data);
  }
 else {
    return factory.createText(data);
  }
}

public CharacterData createCharacterData ( Characters characters ) { String data = characters . getData ( ) ; if ( characters . isCData ( ) ) { return factory . createCDATA ( data ) ; } else { return factory . createText ( data ) ; } }
constructs a new dom4j text or cdata object from the provided characters event .
