if (vertex != null) {
partition.putVertex(vertex);
} else if (originalVertex != null) {
partition.removeVertex(vertexId);
try {
<BUG>getCurrentMessageStore().clearVertexMessages(vertexId);
} catch (IOException e) {</BUG>
throw new IllegalStateException("resolvePartitionMutations: " +
"Caught IOException while clearing messages for a deleted " +
"vertex due to a mutation");

if (vertex != null) {
partition.putVertex(vertex);
} else if (originalVertex != null) {
partition.removeVertex(vertexId);
try {
getPartitionStore().getCurrentMessageStore()
.clearVertexMessages(vertexId);
} catch (IOException e) {
throw new IllegalStateException("resolvePartitionMutations: " +
"Caught IOException while clearing messages for a deleted " +
"vertex due to a mutation");
