try at Optional support for Jersey 2
moved jersey class to separate module