Revert "Revert "Java restful service tutorial""

This reverts commit e6139cb784117b9b09f567cbb22e506818c31d1d.