private static String getRuleKey(Object check) {
    String key = "";
    for (Annotation a : check.getClass().getAnnotations()) {
      try {
        Rule rule = (Rule) a;
        if (rule != null) {
          key = rule.key();
          break;
        }
      } catch (RuntimeException ex) {
        if (LOG.isDebugEnabled()) {
          LOG.debug("{}", ex);
        }
      }
    }
    return key;
  }
private static String getRuleKey ( Object check ) { String key = "" ; for ( Annotation a : check . getClass ( ) . getAnnotations ( ) ) { try { Rule rule = ( Rule ) a ; if ( rule != null ) { key = rule . key ( ) ; break ; } } catch ( RuntimeException ex ) { if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "{}" , ex ) ; } } } return key ; }
@param check
@return