Replaced OSGi service reference by bean.

Signed-off-by: Paulo Pires <pjpires@gmail.com>