Thanks for suggestion's. Just wanted to get some more clarification on alert part.
When you say throw exception if size is not equals to 0, then how exactly we can raise the alerts. One way could be not defining any receiver for that condition, but in this case the exception would always say "InterfaceDetermination did not yield any actual interface".
Can you please elaborate on exception and alert part?
Thanks,
Vertika