Integrate rest with db resources through jersey spring