Reference service = ActionResource.getReferenceAttribute(getRequest(),"auth-service",confService);
String name = getCookieName();
Cookie cookie = null;
if (name!=null) {
cookie = getRequest().getCookies().getFirst(name);
CookieSetting unset = new CookieSetting(name,"");
unset.setMaxAge(0);
unset.setPath(getCookiePath());
getResponse().getCookieSettings().add(unset);
}
getResponse().setStatus(Status.SUCCESS_NO_CONTENT);
if (cookie!=null && service!=null) {
Client client = new Client(getContext().createChildContext(),service.getSchemeProtocol());