Synthesis of nitrooxazoles