private ContextMappingRuleHandle createContextMappingRuleHandle(final Map<String, String> annotations) {
        ContextMappingRuleHandle ruleHandle = new ContextMappingRuleHandle();
        ruleHandle.setContextPath(annotations.get(IngressConstants.PLUGIN_CONTEXT_PATH_PATH));
        ruleHandle.setAddPrefix(annotations.get(IngressConstants.PLUGIN_CONTEXT_PATH_ADD_PREFIX));
        ruleHandle.setAddPrefixed(Boolean.parseBoolean(annotations.getOrDefault(IngressConstants.PLUGIN_CONTEXT_PATH_ADD_PREFIXED, "false")));
        return ruleHandle;
    }
Parse ingress to ShenyuMemoryConfig.

@param ingress ingress resource
@param coreV1Api coreV1Api
@return ShenyuMemoryConfig
shenyu-kubernetes-controller/src/main/java/org/apache/shenyu/k8s/parser/ContextPathParser.java