protected BagBinding makeBagAttributeBinding(
XMLBagElement collection,
EntityBinding entityBinding) {
PluralAttributeBindingState bindingState =
new HbmPluralAttributeBindingState(
entityBinding.getEntity().getPojoEntitySpecifics().getClassName(),
bindingContext,
entityBinding.getMetaAttributeContext(),
collection
);
BagBinding collectionBinding = entityBinding.makeBagAttributeBinding(
bindingState.getAttributeName(),
getCollectionElementType( collection ) )
.initialize( bindingState );
// todo : relational model binding
return collectionBinding;