}
if (concurrencyMgmtAnnotations.size() > 1) {
throw new DeploymentUnitProcessingException("More than one @ConcurrencyManagement annotation found on bean: " + componentDescription.getEJBName());
}
AnnotationInstance concurrencyMgmtAnnotation = concurrencyMgmtAnnotations.get(0);
if (concurrencyMgmtAnnotation.target() instanceof ClassInfo == false) {
throw new DeploymentUnitProcessingException("@ConcurrencyManagement can appear only on a class. Target: " + concurrencyMgmtAnnotation.target() + " is not a class");
}
AnnotationValue conMgmtAnnVal = concurrencyMgmtAnnotation.value();
ConcurrencyManagementType concurrencyManagementType = ConcurrencyManagementType.valueOf(conMgmtAnnVal.asEnum());
switch (concurrencyManagementType) {