class LocalFileConfigurator implements RegistryConfigureProcessor {

    private static String COLON = "://";

    public LocalFileConfigurator() {
    }

    /**
     * 读取配置 key ,获取其 value 进行解析。
     */
    public String parseConfig(String config) {
        String file = null;
        if (StringUtils.isNotEmpty(config)
            && config.startsWith(SofaBootRpcConfigConstants.REGISTRY_PROTOCOL_LOCAL)
            && config.length() > SofaBootRpcConfigConstants.REGISTRY_PROTOCOL_LOCAL.length()) {
            file = config.substring(SofaBootRpcConfigConstants.REGISTRY_PROTOCOL_LOCAL.length()
                                    + COLON.length());
        }

        return file;
    }

    @Override
    public RegistryConfig buildFromAddress(String address) {<FILL_FUNCTION_BODY>}

    @Override
    public String registryType() {
        return SofaBootRpcConfigConstants.REGISTRY_PROTOCOL_LOCAL;
    }

}

        String filePath = parseConfig(address);

        if (StringUtils.isEmpty(filePath)) {
            filePath = SofaBootRpcConfigConstants.REGISTRY_FILE_PATH_DEFAULT;
        }

        return new RegistryConfig().setFile(filePath).setProtocol(
            SofaBootRpcConfigConstants.REGISTRY_PROTOCOL_LOCAL);
    
<no_super_class>