final CompilationContext componentBean) throws CompilationException {
TemplateElement returnValue = null;
short nodeType = nodeElement.getNodeType();
if (Node.CDATA_SECTION_NODE == nodeType) {
returnValue =new CDATAElement(nodeElement, componentBean);
} else if (Node.TEXT_NODE == nodeType) {
returnValue =new TextElement(nodeElement, componentBean);
} else if (Node.COMMENT_NODE == nodeType) {
returnValue =new CommentElement(nodeElement, componentBean);
} else if (Node.PROCESSING_INSTRUCTION_NODE == nodeType) {