class QueuePropertyFileChangeWatcher implements ApplicationListener<AbstractConfigurationFileEvent> {

    private void loadQueues(File configFile)
    {

        try (FileInputStream fis = new FileInputStream(configFile))
        {
            log.debug("Loading queues from file {}", configFile.getCanonicalPath());

            Properties queueProperties = new Properties();
            queueProperties.load(fis);

            setQueueNamesProperties(queueProperties);

            loadQueues(queueProperties);
        }
        catch (IOException e)
        {
            log.error("Could not load queue names: {}", e.getMessage(), e);
        }
    }

}