try {
TableManager tableManager = getRepository(uriInfo).getTableManager();
if (!tableManager.tableExists(tableName)) {
throw new ResourceException("Table '" + tableName + "' not found", NOT_FOUND.getStatusCode());
}
tableManager.dropTable(tableName);
return Response.ok().build();
} catch (IOException ioe) {
throw new ResourceException("Error dropping table '" + tableName + "'", ioe,
INTERNAL_SERVER_ERROR.getStatusCode());
} catch (InterruptedException ie) {