class CategoryWebService {

	@GET
	public List<CategoryModel> list() {
		return FluentIterable.from(categoriesService.retrieve().getCategories())
				.transform(new Function<Category, CategoryModel>() {

					@Override
					public CategoryModel apply(Category category) {
						return new CategoryModel(category.getName());
					}
				}).toSortedList(Ordering.natural());
	}

	@Inject  CategoryWebService(CategoriesService categoriesService);

}