@Override
    protected void parse() {
		getConnectionParam().load(getConfig());
	    getProxyParam().load(getConfig());
		getCertificateParam().load(getConfig());
		getViewParam().load(getConfig());
		getCheckForUpdatesParam().load(getConfig());
		getApiParam().load(getConfig());
		getGlobalExcludeURLParam().load(getConfig());
		getExperimentalFeaturesParam().load(getConfig());
        getDatabaseParam().load(getConfig());
        getExtensionParam().load(getConfig());
		
		String userDir = null;
		try {
			userDir = getConfig().getString(USER_DIR);
			if (userDir != null) {
				this.userDirectory = new File(userDir);
			}
		} catch (Exception e) {
			// In a previous release the userdir was set as a file
			try {
				File file = (File) getConfig().getProperty(USER_DIR);
				if (file != null && file.isDirectory()) {
					this.userDirectory = file;
				}
			} catch (Exception e1) {
				logger.error(e1.getMessage(), e1);
			}
		}
    }
@ Override protected void parse ( ) { getConnectionParam ( ) . load ( getConfig ( ) ) ; getProxyParam ( ) . load ( getConfig ( ) ) ; getCertificateParam ( ) . load ( getConfig ( ) ) ; getViewParam ( ) . load ( getConfig ( ) ) ; getCheckForUpdatesParam ( ) . load ( getConfig ( ) ) ; getApiParam ( ) . load ( getConfig ( ) ) ; getGlobalExcludeURLParam ( ) . load ( getConfig ( ) ) ; getExperimentalFeaturesParam ( ) . load ( getConfig ( ) ) ; getDatabaseParam ( ) . load ( getConfig ( ) ) ; getExtensionParam ( ) . load ( getConfig ( ) ) ; String userDir = null ; try { userDir = getConfig ( ) . getString ( USER_DIR ) ; if ( userDir != null ) { this . userDirectory = new File ( userDir ) ; } } catch ( Exception e ) { try { File file = ( File ) getConfig ( ) . getProperty ( USER_DIR ) ; if ( file != null && file . isDirectory ( ) ) { this . userDirectory = file ; } } catch ( Exception e1 ) { logger . error ( e1 . getMessage ( ) , e1 ) ; } } }
ZAP: Removed the method getConfig().