throw new IllegalStateException("You can only configure one outbound router on a service");
}
MessageProcessorAnnotationParser parser = parserFactory.getRouterParser(metaData.getAnnotation(), metaData.getClazz(), metaData.getMember());
if (parser != null)
{
router = (OutboundRouter) parser.parseMessageProcessor(metaData.getAnnotation());
}
else
{
//TODO i18n
throw new IllegalStateException("Cannot find parser for router annotation: " + metaData.getAnnotation().toString());