code: private boolean isRecording(Endpoint endpoint)
     {
        List<RecordProcessor> processors = endpoint.getRecordProcessors();
        if (processors == null || processors.isEmpty())
        {
           return false;
        }
        for (RecordProcessor processor : processors)
        {
           if (processor.isRecording())
           {
              return true;
           }
        }
        return false;
     }
docs: Returns true if there's at least a record processor in recording mode
  
  @param endpoint
  @return