now detector create in detector factory by key

creates