class SpringTool implements ApplicationContextAware, EmbeddedValueResolverAware {
    private static ApplicationContext applicationContext = null;
    private static StringValueResolver stringValueResolver = null;

    @Override
    public void setApplicationContext(@NonNull ApplicationContext applicationContext) throws BeansException {
        if (SpringTool.applicationContext == null) {
            SpringTool.applicationContext = applicationContext;
        }
    }

    public static ApplicationContext getApplicationContext() {
        return applicationContext;
    }

    public static Object getBean(String name) {
        return getApplicationContext().getBean(name);
    }

    public static <T> T getBean(Class<T> clazz) {
        return getApplicationContext().getBean(clazz);
    }

    public static String getPropertiesValue(String name) {<FILL_FUNCTION_BODY>}

    @Override
    public void setEmbeddedValueResolver(@NonNull StringValueResolver resolver) {
        stringValueResolver = resolver;
    }
}

        try {
            name = "${" + name + "}";
            return stringValueResolver.resolveStringValue(name);
        } catch (Exception e) {
            log.error("{%s} is not found.".formatted(name));
            return null;
        }
    
<no_super_class>