Or are you passing all elements into this generateDescriptor() method?