Object o = ec.peekObject();
PropertySetter parentBean = new PropertySetter(o);
parentBean.setContext(context);
ContainmentType containmentType = parentBean.canContainComponent(nestedElementTagName);
switch (containmentType) {
case NOT_FOUND:
case AS_SINGLE_COMPONENT:
case AS_COMPONENT_COLLECTION: