Changing collectionClass to allowedClass cause it sounded weird