created Jersey middleware