class TableFieldMappingResource {

    @GET
    public Response get(@PathParam("name") final String table) {
        try {
            return Response.ok(queryStore.getFieldMappings(table)).build();
        } catch (QueryStoreException ex) {
            logger.error("Unable to fetch Table Metadata " , ex);
            throw new WebApplicationException(Response.serverError()
                    .entity(Collections.singletonMap("error", "Metadata Fetch Failed")).build());
        }
    }

    public  TableFieldMappingResource(QueryStore queryStore);

}