adding check for containedDataDefintions size