*
* @throws SAXException
* DOCUMENT ME!
*/
public void startEntity(final String name) throws SAXException {
CEntityReference ref = new CEntityReference(name, null, document);
if (currentElement == document) {
document.appendChildInternal(ref);
} else {
ref.parentNode = currentElement;
if (currentElement.listChild == null) {