Convert SearchableClassMapping to groovy