PhoneContext phoneContext = getPhoneContext(); SpeedDial speedDial = phoneContext.getSpeedDial(this); if (speedDial != null) { ClearonePhoneSpeedDial phoneSpeedDial = new ClearonePhoneSpeedDial(speedDial); addDefaultSettingHandler(phoneSpeedDial); }
    public void generateProfiles() {        PhoneContext phoneContext = getPhoneContext();        SpeedDial speedDial = phoneContext.getSpeedDial(this);        if (speedDial != null) {            ClearonePhoneSpeedDial phoneSpeedDial = new ClearonePhoneSpeedDial(speedDial);            addDefaultSettingHandler(phoneSpeedDial);        }        super.generateProfiles();        // generate some other files        generateFile(getDialplanTemplate(), getDialplanFileName());    }