code: public static String getName(String eventSrcName) {
          if (eventSrcName == null) {
              return null;
          }
  
          if (eventSrcName.endsWith("Check")) {
              eventSrcName = eventSrcName.substring(0, eventSrcName.length() - 5);
          }
  
          return eventSrcName.substring(eventSrcName.lastIndexOf('.') + 1);
      }
docs: Get the rule name from an audit event source name.
  
  @param eventSrcName the audit event source name
  @return the rule name, which is the class name without package and removed eventual "Check" suffix