public boolean isValid(final ResourcePool pool,
final ConstraintValidatorContext constraintValidatorContext) {
if (poolFaults == ConnectionPoolErrorMessages.MAX_STEADY_INVALID) {
if (pool instanceof ConnectorConnectionPool) {
ConnectorConnectionPool connPool = (ConnectorConnectionPool) pool;
String maxPoolSize = connPool.getMaxPoolSize();
String steadyPoolSize = connPool.getSteadyPoolSize();
if(steadyPoolSize == null) {
steadyPoolSize = Constants.DEFAULT_STEADY_POOL_SIZE;
}
if (maxPoolSize == null) {
maxPoolSize = Constants.DEFAULT_MAX_POOL_SIZE;