boolean isTextValue = false;
int size = tree.getChildCount();
if(size == 0){
if(contentHandler instanceof UnmarshalRecord){
isTextValue = isTextValue(parentLocalName);
UnmarshalRecord ur = (UnmarshalRecord)contentHandler;
XPathNode node = ur.getNonAttributeXPathNode(uri, parentLocalName, parentLocalName, null);
if(node != null){
NodeValue nv = node.getNodeValue();
if(nv == null && node.getTextNode() != null){
nv = node.getTextNode().getUnmarshalNodeValue();
}
if(nv != null && nv.isContainerValue()){
ur.getContainerInstance(((ContainerValue)nv));
}
}
}
}
startCollection();
XPathFragment groupingXPathFragment = null;
XPathFragment itemXPathFragment = null;
if(contentHandler instanceof UnmarshalRecord) {
isTextValue = isTextValue(parentLocalName);
UnmarshalRecord unmarshalRecord = (UnmarshalRecord) contentHandler;
if(unmarshalRecord.getUnmarshaller().isWrapperAsCollectionName()) {
XPathNode unmarshalRecordXPathNode = unmarshalRecord.getXPathNode();
if(null != unmarshalRecordXPathNode) {
XPathFragment currentFragment = new XPathFragment();
currentFragment.setLocalName(parentLocalName);
currentFragment.setNamespaceURI(uri);
currentFragment.setNamespaceAware(namespaceAware);