if (beanNames != null) {
for (int i = 0; i < beanNames.length; i++) {
String beanName = beanNames[i];
FunctionWrapper functionWrapper = (FunctionWrapper) applicationContext.getBean(beanName);
String key = functionWrapper.getFunctionName();
if (!StringUtils.hasText(key)) {
key = beanName;
}