private boolean isAltBeanInInjectionPointBDA(String bdaBeansXMLFilePath, Bean<?> altBean)
{
ScannerService scannerService = webBeansContext.getScannerService();
BDABeansXmlScanner beansXMLScanner = scannerService.getBDABeansXmlScanner();
Set<Class<?>> definedAlternatives = beansXMLScanner.getAlternatives(bdaBeansXMLFilePath);
if (definedAlternatives.contains(altBean.getBeanClass()))
{
return true;
}
Set<Class<? extends Annotation>> definedStereotypes = beansXMLScanner.getStereotypes(bdaBeansXMLFilePath);
for (Class<? extends Annotation> stereoAnnotations : definedStereotypes)
{
if (AnnotationUtil.hasClassAnnotation(altBean.getBeanClass(), stereoAnnotations))
{