public static boolean isUi(final MultivaluedMap<String,String> headers){
  return CLIENT_HEADER_VALUE.equals(headers.getFirst(CLIENT_HEADER_NAME)) && headers.get("referer") != null;
}

public static boolean isUi ( final MultivaluedMap < String , String > headers ) { return CLIENT_HEADER_VALUE . equals ( headers . getFirst ( CLIENT_HEADER_NAME ) ) && headers . get ( "referer" ) != null ; }
check if the request header is a ui header .
