if (label == null && tagParams.getLabelText() != null) {
label = tagParams.getLabelText();
}
if (tagParams.getType().equals("hidden")) {
widget = new HiddenFieldWidget();
// there is only one state
Entry<String, ProgramWorkflowState> state = states.entrySet().iterator().next();
widget.setInitialValue(state.getValue().getUuid());
} else if (tagParams.getType().equals("checkbox")) {
// there is only one state