public String searchByPhone(final String phone) throws IOException {
        for (Record record : notebookCache.values()) {
            Record rec = new Record(record.toString());
            if (rec.phone.equals(phone)) {
                return rec.name;
            }
        }
        return null;
    }