try {
obj.getObject().close();
} catch (Exception e) {
}
}
<BUG>public boolean validateObject(final PooledObject<RedisAsyncConnection> obj) {
</BUG>
try {
<BUG>obj.getObject().ping();
return true;</BUG>
} catch (Exception e) {

try {
obj.getObject().close();
} catch (Exception e) {
}
}
public boolean validateObject(final PooledObject<StatefulConnection<byte[], byte[]>> obj) {
try {
if (obj.getObject() instanceof StatefulRedisConnection) {
((StatefulRedisConnection) obj.getObject()).sync().ping();
}
return true;
} catch (Exception e) {
