{
Object handler = valueEntry.handler;
ParticleBinding childParticle = (ParticleBinding)binding;
if(handler instanceof ParticleHandler)
{
ParticleHandler pHandler = (ParticleHandler)handler;
if(childParticle.isRepeatable())
{
if(parentValueList != null)
{
parentValueList.addTermValue(valueEntry.qName, childParticle, pHandler, valueEntry.value, null);
}
else
{
Collection<?> col = (Collection<?>) valueEntry.value;
//System.out.println("newInstance: " + childParticle.getTerm() + "=" + col);
pHandler.setParent(parent, col, valueEntry.qName, childParticle, valueEntry.parentParticle);
/* for (Iterator iter = col.iterator(); iter.hasNext();)
{
pHandler.setParent(parent, iter.next(), valueEntry.qName, childParticle,
valueEntry.parentParticle);
}
*/
}
}
else
{
if(parentValueList != null)
{
parentValueList.addTermValue(valueEntry.qName, childParticle, pHandler, valueEntry.value, valueEntry.parentParticle);
}
else
{
pHandler.setParent(parent, valueEntry.value, valueEntry.qName, childParticle, valueEntry.parentParticle);
}
}
}
else
{