code: private boolean isLocalDita(final Attributes atts) {
          final String classValue = atts.getValue(ATTRIBUTE_NAME_CLASS);
          if (classValue == null
                  || (TOPIC_IMAGE.matches(classValue))) {
              return false;
          }
  
          String scopeValue = atts.getValue(ATTRIBUTE_NAME_SCOPE);
          if (scopeValue == null) {
              scopeValue = ATTR_SCOPE_VALUE_LOCAL;
          }
          String formatValue = atts.getValue(ATTRIBUTE_NAME_FORMAT);
          if (formatValue == null) {
              formatValue = ATTR_FORMAT_VALUE_DITA;
          }
  
          return scopeValue.equals(ATTR_SCOPE_VALUE_LOCAL) && formatValue.equals(ATTR_FORMAT_VALUE_DITA);
  
      }
docs: Check whether the attributes contains references
  
  @param atts element attributes
  @return {@code true} if local DITA reference, otherwise {@code false}