private Map<Integer, SpringBeansTarget> addBackwardCompatibilityTarget(ProfilerConfig config) {
        final Map<Integer, SpringBeansTarget> result = new HashMap<>();
        final String namePatternRegexs = config.readString(SPRING_BEANS_NAME_PATTERN, null);
        // bean name.
        if (StringUtils.hasLength(namePatternRegexs)) {
            final SpringBeansTarget target = new SpringBeansTarget();
            target.setNamePatterns(namePatternRegexs);
            result.put(-1, target);
        }

        // class name.
        final String classPatternRegexs = config.readString(SPRING_BEANS_CLASS_PATTERN, null);
        if (StringUtils.hasLength(classPatternRegexs)) {
            final SpringBeansTarget target = new SpringBeansTarget();
            target.setClassPatterns(classPatternRegexs);
            result.put(-2, target);
        }

        // annotation.
        final String annotations = config.readString(SPRING_BEANS_ANNOTATION, null);
        if (StringUtils.hasLength(annotations)) {
            final SpringBeansTarget target = new SpringBeansTarget();
            target.setAnnotations(annotations);
            result.put(-3, target);
        }

        return result;
    }
@author Jongho Moon
@author jaehong.kim
agent-module/plugins/spring/src/main/java/com/navercorp/pinpoint/plugin/spring/beans/SpringBeansConfig.java