Java Rest services first