protected Map<String, String> loadProperties() {
        Map<String, String> result = new HashMap<String, String>();
        InputStream inStream = null;
        try {
            URL url = getClass().getClassLoader().getResource(getFileName());
            inStream = url != null ? url.openStream() : null;

            if (inStream == null) {
                LOG.error("InputStream {} is null!", getFileName());
            }
            Properties props = new Properties();
            props.load(inStream);
            for (Map.Entry<Object, Object> entry : props.entrySet()) {
                result.put((String) entry.getKey(), (String) entry.getValue());
            }
        } catch (UnsupportedEncodingException e) {
            LOG.error("fail to load properties, file ={}, and e= {}", getFileName(), e);
        } catch (Exception e) {
            LOG.error("fail to load properties, file ={}, and e= {}", getFileName(), e);
        } finally {
            if (null != inStream) {
                try {
                    inStream.close();
                } catch (IOException e) {
                    LOG.error("fail to loadTopics, inStream.close ,and e= {}", getFileName(), e);
                }
            }
        }
        return result;
    }
load from holder
@param tmpHolder
@return
inlong-audit/audit-common/src/main/java/org/apache/inlong/audit/file/holder/PropertiesConfigHolder.java