public AcceptRequestInterceptor(final String accept){
  this.accept=accept;
  checkArgument(!accept.isEmpty(),"accept must not be empty");
}

public AcceptRequestInterceptor ( final String accept ) { this . accept = accept ; checkArgument ( ! accept . isEmpty ( ) , "accept must not be empty" ) ; }
creates request interceptor which sets the accept header .
