class QueryMetricsBean {

    @GET
    @POST
    @Path("/id/{id}")
    @Interceptors({RequiredInterceptor.class, ResponseInterceptor.class})
    public BaseQueryMetricListResponse query(@PathParam("id") @Required("id") String id) {
        
        // Find out who/what called this method
        DatawavePrincipal dp = null;
        Principal p = ctx.getCallerPrincipal();
        String user = p.getName();
        if (p instanceof DatawavePrincipal) {
            dp = (DatawavePrincipal) p;
            user = dp.getShortName();
        }
        return queryHandler.query(user, id, dp);
    }

}