_repository = new HashMap<Integer, Item>();
}
@Path("{id}")
public ItemResource getItem( @PathParam("id") final Integer id ) {
final Item item = _repository.get( id );
if ( item == null ) {
throw new NotFoundException("Item with id " + id + " does not exist!");
}
return new ItemResource( item );