added support for jersy rest