String requiredParameter = REQUIRED_PARAMETERS[i]; if ((requiredParameter == null) || (requiredParameter.equals(""))) throw new IllegalStateException("Required parameter '" + requiredParameter + "' is not set");
String parvalue = config.getProperty(REQUIRED_PARAMETERS[i]); if ((parvalue == null) || (parvalue.equals(""))) { throw new IllegalStateException("Required parameter '" + REQUIRED_PARAMETERS[i] + "' is not set"); }
    private Properties getConfig() {        // Read properties. Need work...        Properties config = new Properties();        try {            config.load(new FileInputStream(new File(PROP_CONFIG_FILENAME)));        } catch (IOException e) {            throw new IllegalStateException("Unable to read configuration");        }        // Are we missing some required properties?        for (int i = 0; i < REQUIRED_PARAMETERS.length; i++) {            String requiredParameter = REQUIRED_PARAMETERS[i];            if ((requiredParameter == null) || (requiredParameter.equals("")))                throw new IllegalStateException("Required parameter '" + requiredParameter + "' is not set");        }        return config;    }