} else if (actions.size() > 1) {
Long purgeStart = System.currentTimeMillis();
List<IndexAction> itemActions = Lists.newArrayList();
List<IndexAction> embeddedActions = Lists.newArrayList();
for (IndexAction action : actions) {
<BUG>if(action.getClass().isAssignableFrom(EmbeddedIndexAction.class)){
</BUG>
embeddedActions.add(action);
} else {
itemActions.add(action);

} else if (actions.size() > 1) {
Long purgeStart = System.currentTimeMillis();
List<IndexAction> itemActions = Lists.newArrayList();
List<IndexAction> embeddedActions = Lists.newArrayList();
for (IndexAction action : actions) {
if (action.getClass().isAssignableFrom(EmbeddedIndexAction.class)) {
embeddedActions.add(action);
} else {
itemActions.add(action);
