context.registerShutdownHook();
HiveTemplate template = context.getBean(HiveTemplate.class);
template.query("show tables;");
PasswordRepository repository = context.getBean(HiveTemplatePasswordRepository.class);
repository.processPasswordFile("/etc/passwd");
log.info("Count of password entries = " + repository.count());
}