Assert.hasText(beanName, "Bean name cannot be empty.");
Assert.notNull(description, "Description cannot be null.");
if (StringUtils.hasText(authentication.runAs())) {
description.setRunAs(authentication.runAs());
}
final RequiredAuthentication requiredAuthentication;
switch (authentication.value()) {
case NONE:
requiredAuthentication = RequiredAuthentication.none;
break;
case GUEST: