Rest predicions service working with a simple servlet