}
parseAndPutSecured(state.getSecured(), attributes);
Action finalResponseAction;
ViewFactory viewFactory = parseViewFactory(state.getView(), state.getId(), true, null);
if (viewFactory != null) {
finalResponseAction = new ViewFactoryActionAdapter(viewFactory);
} else {
finalResponseAction = null;
}
getLocalContext().getFlowArtifactFactory().createEndState(state.getId(), flow,
parseActions(state.getOnEntryActions()), finalResponseAction,