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

    if (isNumeric) {
      f.deleteCompanyPhone(phoneNumber);
    }
  }