private void pingConnectionPool(Resources resources) {
if(resources != null){
if(resources.getResources() != null){
for(Resource resource : resources.getResources()){
if(resource instanceof ResourcePool){
ResourcePool pool = (ResourcePool)resource;
if(Boolean.valueOf(pool.getPing())){
PoolInfo poolInfo = ResourceUtil.getPoolInfo(pool);
CommandRunner commandRunner = commandRunnerProvider.get();
ActionReport report = actionReportProvider.get();
CommandRunner.CommandInvocation invocation =
commandRunner.getCommandInvocation("ping-connection-pool", report, kernelIdentity.getSubject());