Synthesis of piperidine derivatives fused to a tetrahydrofuran ring