replyTo = ((ReplyTo) a).value();
}
}
if (typeargs.length != 1) {
throw new ProviderException(PROVIDER_EXCEPTION_ERROR_MSG_BASE + ": Type at injection point must have exactly" +
" one type parameter. (found: " + typeargs.length + ")");
}
if (toSubject == null) {
throw new ProviderException(PROVIDER_EXCEPTION_ERROR_MSG_BASE + ": Required "
+ ToSubject.class.getName() + " qualifier missing at injection point.");
}
if (typeargs.length != 1) {
throw new ProviderException(PROVIDER_EXCEPTION_ERROR_MSG_BASE + ": Type at injection point must have exactly" +
" one type parameter. (found: " + typeargs.length + ")");
}
return ErraiMessageSender.of(toSubject, replyTo, typeargs[0], ErraiBus.get());
}