private Object readObjectFromFile(String configPath, String fileName) {
        FileInputStream fis = null;
        ObjectInputStream is;
        try {
            File file;
            if (configPath.lastIndexOf(File.separator) != configPath.length() - 1) {
                file = new File(configPath + File.separator + fileName + ".conf");
            } else {
                file = new File(configPath + fileName + ".conf");
            }
            if (file.exists()) {
                fis = new FileInputStream(file);
                is = new ObjectInputStream(fis);
                Object entry = is.readObject();
                fis.close();
                return entry;
            } else {
                return null;
            }
        } catch (Throwable e1) {
            logger.error("store " + fileName + " exception", e1);
            return null;
        } finally {
            if (fis != null) {
                try {
                    fis.close();
                } catch (Throwable e2) {
                    //
                }
            }
        }
    }
Read object data from specified file path

@param configPath    the stored file path
@param fileName      the stored file name
@return              the stored object
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/tools/cli/CliMetaDataBRU.java