Learning Java Rest Service