fix spring beans resolution in plugin