}
if (sao != null && sao.getHooks() != null) {
List<IHook> hooks = sao.getHooks();
for (IHook h : hooks) {
Stage stage = h.getStage();
String attributeName = getStageAttributeName(stage);
if (attributeName != null) {
List<String> commands = new ArrayList<String>();
if (h.getCommandsList() == null) {
continue;