try
{
final ConnectorRuntime connRuntime = mHabitat.getComponent(ConnectorRuntime.class, null);
//as per the method parameters, this is not applicable for "application-scoped" pools
PoolInfo poolInfo = new PoolInfo(poolName);
final boolean pingStatus = connRuntime.pingConnectionPool(poolInfo);
result.put(ConnectorRuntimeAPIProvider.PING_CONNECTION_POOL_KEY, pingStatus);
}
catch (ResourceException ex)
{
result.put(ConnectorRuntimeAPIProvider.PING_CONNECTION_POOL_KEY, false);