switch (beanNames.length) {
case 0:
logger.warn("Cannot find bean definition for {}.", actionClass);
break;
case 1:
Profile profile = actionBuilder.getProfileService().getProfile(
actionClass.getName());
Action action = actionBuilder.build(actionClass.getName());
PackageConfig.Builder packageConfig = getPackageConfig(profile, packageConfigs,
action, actionClass);
if(createActionConfig(packageConfig, action, actionClass, beanNames[0])){