modified example of sequencer. use @Resource.