*/
@Override
public boolean prepare() {
for (Map.Entry<EntityGroupInfo, List<Action>> entry : transcations
.entrySet()) {
Publisher pub = new Publisher(entry.getKey(), action);
String entityGroupName = entry.getKey().getEntityGroupNameAsString();
pubs.put(entityGroupName, pub);
for (Action action : entry.getValue()) {
try {
List<MessageID> messages = preparedMessage.get(entityGroupName);
if (messages == null) {
messages = new ArrayList<MessageID>();
}
messages.add(pub.doAsynchronous((Message) action));
preparedMessage.put(entityGroupName, messages);
} catch (IOException e) {
return false;
}
}