build a spring bean configuration for common script