maybe we should change to use jersey annotations