}
@Override
public FilterReply verifyRecipient(RecipientContext recipientContext)
throws RejectException {
Destination currentDestination =
recipientContext.isDestinationAssigned() ? recipientContext
.getDestination() : null;
if (currentDestination == null) {
Destination destination =
lookupDestinationByResolvingAliases(recipientContext.recipient);
recipientContext.setDestination(destination);
} else if (currentDestination instanceof AliasDestination) {
Destination destination =
lookupDestinationByResolvingAliases(((AliasDestination) currentDestination)
.getRecipient());
recipientContext.setDestination(destination);
}
return FilterReply.NEUTRAL;