Revert "Make refactoring Repositories. Try to tests for testign Jersey."

This reverts commit 869a7c82dffde0227c9f78d0c95386bec114472b.