Improve and fix basic service core class using jersey client api