package com.rhinoforms.flow;

import java.util.HashSet;
import java.util.Set;

public enum FlowActionType {

	FIRST, NEXT, BACK, CANCEL, DELETE, FINISH;

	private static final Set<String> stringValues;
	static {
		stringValues = new HashSet<String>();
		for (FlowActionType flowActionType : FlowActionType.values()) {
			stringValues.add(flowActionType.toString());
		}
	}
	
	public static FlowActionType safeValueOf(String label) {
		if (label != null && !label.isEmpty() && stringValues.contains(label.toLowerCase())) {
			return FlowActionType.valueOf(label.toUpperCase());
		}
		return null;
	}

	@Override
	public String toString() {
		return super.toString().toLowerCase();
	}
	
}

@@ -107,15 +107,8 @@
 %7B%0A%0A%09
-FIRST, 
 NEXT

Remove unused 'first' action.