AxonFramework/AxonFramework — pull request #96 by zefixlluja (2013-09-02 10:46:48+00:00)
Title: Mongo docpercommit strategy

DocumentPerCommit strategy throws exception when dealing with empty lists of event messages.

```java
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at org.axonframework.eventstore.mongo.DocumentPerCommitStorageStrategy$CommitEntry.(DocumentPerCommitStorage
at org.axonframework.eventstore.mongo.DocumentPerCommitStorageStrategy$CommitEntry.(DocumentPerCommitStorage
at org.axonframework.eventstore.mongo.DocumentPerCommitStorageStrategy.createDocuments(DocumentPerCommitStorageStr
```