// TODO This could be changed to allow multiple @Qualifier annotations
Annotation qualifierAnnotation = first( filter( Specifications.translate( Annotations.type(), hasAnnotation( Qualifier.class ) ), iterable( dependencyModel.annotations() ) ) );
Specification<ServiceReference<?>> serviceQualifier = null;
if( qualifierAnnotation != null )
{
Qualifier qualifier = qualifierAnnotation.annotationType().getAnnotation( Qualifier.class );
try
{
serviceQualifier = qualifier.value().newInstance().qualifier( qualifierAnnotation );
}
catch( Exception e )
{
throw new InvalidInjectionException( "Could not instantiate qualifier serviceQualifier", e );
}