[N:1]1[CH:6]=[CH:5][N:4]=[CH:3][C:2]=1[NH2:7].CO.Br[CH2:11][C:12](=O)[C:13]([O-:15])=[O:14].CO[CH2:19][CH2:20]OC>>[N:7]1[CH:11]=[C:12]([C:13]([O:15][CH2:19][CH3:20])=[O:14])[N:1]2[CH:6]=[CH:5][N:4]=[CH:3][C:2]=12Pyrazin-2-amine 4a (1 g, 10 mmol) was dissolved in 50 mL of ethylene glycol dimethyl ether, followed by addition of 50 mL of methanol and 3-bromo-2-oxo-propionate (2.30 g, 12 mmol). After stirring for 4 hours at room temperature, the reaction mixture was cooled to 0° C. and stirred for 30 minutes until a solid precipitated. The reaction mixture was filtered, and the filter cake was washed with ether (10 mL×3). The solid was dissolved in 50 mL of anhydrous ethanol and the solution was refluxed for 4 hours. The reaction mixture was concentrated under reduced pressure, added with 100 mL of dichloromethane, washed successively with saturated sodium carbonate solution (40 mL) and saturated sodium chloride solution (40 mL), dried over anhydrous sodium sulfate and filtered. The filtrate was concentrated under reduced pressure to obtain ethyl imidazo[1,2-a]pyrazine-3-carboxylate 14a (0.55 g, yield 28.9%) as a brown solid.