private Map<InstanceType, List<Message>> generateMessage(final Criteria recipientCriteria,
final Message message)
{
Map<InstanceType, List<Message>> messagesToSendMap =
new HashMap<InstanceType, List<Message>>();
InstanceType instanceType = recipientCriteria.getRecipientInstanceType();
if (instanceType == InstanceType.CONTROLLER)
{
List<Message> messages = generateMessagesForController(message);
messagesToSendMap.put(InstanceType.CONTROLLER, messages);