Genetic engineering for resistance to bacteria in transgenic plants by introduction of foreign genes