InternalActionDescriptor actionDescriptor;
if(INSTALL_SCRIPT_ACTION.equals(getAction()))
{
ScriptLifecycleInstallActionDescriptor ad = new ScriptLifecycleInstallActionDescriptor();
SystemEntry expectedEntry = entryDelta.getExpectedEntry();
if(!expectedEntry.isDefaultParent())
ad.setParent(expectedEntry.getParent());
ad.setScript(expectedEntry.getScript());
Map initParameters = (Map) expectedEntry.getInitParameters();
if(initParameters == null)
initParameters = new TreeMap();
else
initParameters = new TreeMap(initParameters);
if(!expectedEntry.getMetadata().isEmpty())
initParameters.put("metadata", expectedEntry.getMetadata());
if(expectedEntry.hasTags())
initParameters.put("tags", expectedEntry.getTags());
if(!initParameters.isEmpty())
ad.setInitParameters(initParameters);
actionDescriptor = ad;
}
else