@DELETE
  @Consumes("application/json")
  @Path("/delete")
  public void deleteCompany(String content) throws EntityNotFoundException, NotNumericException {
    JsonObject jo = new JsonParser().parse(content).getAsJsonObject();
    int id;
    boolean isNumeric = true;
    try {
      String companyId = jo.get("id").getAsString();
      id = Integer.parseInt(companyId);
    } catch (NumberFormatException nfe) {
      isNumeric = false;
      throw new NotNumericException("Phonenumber not an integer.");
    }

    if (isNumeric) {
      f.deleteCompany(id);
    }
  }