for (int j=0; j<parts2Length; j++) {
// since the parts in this loop are separated by "&&", all parts AFTER
// the first one should only be run if the others before succeeded.
final ActionEntry entry = new ActionEntry(rawActionName, parts2[j], j == 0);
List<ActionEntry> actionList = actions.get(entry.getType());
if (actionList == null) {
actionList = new LinkedList<>();
actions.put(entry.getType(), actionList);
}
actionList.add(entry);
Collections.sort(actionList);