public static Properties loadProperties(String filename) throws ConfigurableException {
        log.info("Loading properties from " + filename);
        Properties properties = new Properties();
        FileInputStream input = null;
        try {
            input = new FileInputStream(filename);
            properties.load(input);
        } catch (IOException e) {
            final String errMessage = e.getClass().getSimpleName() + ": " + e.getMessage();
            log.error(errMessage, e);
            throw new ConfigurableException(errMessage, e);
        } finally {
            if (null != input) {
                try {
                    input.close();
                } catch (IOException e) {
                    final String errMessage = e.getClass().getSimpleName() + ": " + e.getMessage();
                    log.error(errMessage, e);
                }
            }
        }

        return properties;
    }
public static Properties loadProperties ( String filename ) throws ConfigurableException { log . info ( "Loading properties from " + filename ) ; Properties properties = new Properties ( ) ; FileInputStream input = null ; try { input = new FileInputStream ( filename ) ; properties . load ( input ) ; } catch ( IOException e ) { final String errMessage = e . getClass ( ) . getSimpleName ( ) + ": " + e . getMessage ( ) ; log . error ( errMessage , e ) ; throw new ConfigurableException ( errMessage , e ) ; } finally { if ( null != input ) { try { input . close ( ) ; } catch ( IOException e ) { final String errMessage = e . getClass ( ) . getSimpleName ( ) + ": " + e . getMessage ( ) ; log . error ( errMessage , e ) ; } } } return properties ; }
Loads the properties from the properties file.

@param filename the properties file name
@return Properties instance
@throws ConfigurableException ConfigurableException