@Override
public boolean isPasswordCorrect(String password) {
boolean passwordCorrect = false;
try {
Logger logger = new Logger();
Properties info = new Properties();
info.setProperty("password", password);
ConnectionFactory connectionFactory = new ConnectionFactoryImpl();
ProtocolConnection connection = connectionFactory.openConnectionImpl(
host, port, getDataSource().getUser(), "template1", info, logger);