protected void callAction(){
  if (commandSession != null && switchCommand != null) {
    try {
      switchCommand.execute(commandSession);
    }
 catch (    Exception e) {
      LOGGER.log(Level.FINEST,"Unable to execute the command",e);
    }
  }
}

protected void callAction ( ) { if ( commandSession != null && switchCommand != null ) { try { switchCommand . execute ( commandSession ) ; } catch ( Exception e ) { LOGGER . log ( Level . FINEST , "Unable to execute the command" , e ) ; } } }
check if we can call the action ( if we have both action and command session )
