public static Map<String,List<TaskAction>> getTaskStatusAllowableActions() throws IOException, XmlException {
        if (taskStatusAllowableActions == null) {
            taskStatusAllowableActions = new HashMap<String,List<TaskAction>>();
            for (TaskActionStatus taskActionStatus : getTaskActions().getTaskDetailActions().getTaskStatusList()) {
                String status = taskActionStatus.getStatus();
                List<TaskAction> taskActions = new ArrayList<TaskAction>();
                taskStatusAllowableActions.put(status, taskActions);
                for (AllowableAction allowableAction: taskActionStatus.getAllowableActionList()) {
                    TaskAction taskAction = convertToJsonable(allowableAction);
                    if (!taskActions.contains(taskAction))
                        taskActions.add(taskAction);
                }
            }
        }
        return taskStatusAllowableActions;
    }
public static Map < String , List < TaskAction > > getTaskStatusAllowableActions ( ) throws IOException , XmlException { if ( taskStatusAllowableActions == null ) { taskStatusAllowableActions = new HashMap < String , List < TaskAction > > ( ) ; for ( TaskActionStatus taskActionStatus : getTaskActions ( ) . getTaskDetailActions ( ) . getTaskStatusList ( ) ) { String status = taskActionStatus . getStatus ( ) ; List < TaskAction > taskActions = new ArrayList < TaskAction > ( ) ; taskStatusAllowableActions . put ( status , taskActions ) ; for ( AllowableAction allowableAction : taskActionStatus . getAllowableActionList ( ) ) { TaskAction taskAction = convertToJsonable ( allowableAction ) ; if ( ! taskActions . contains ( taskAction ) ) taskActions . add ( taskAction ) ; } } } return taskStatusAllowableActions ; }
populated lazily