ExternalBeanAttributesFactory throws DefinitionException. BeanAttributesFactory does nothing and adds an illegal type in the set. We should also log some warning message.
See also CDI-495 and https://issues.apache.org/jira/browse/DELTASPIKE-817.