if (!failedPortletsMap.containsKey(errorCode.name()))
{
List<String> portleIDs = new ArrayList<String>();
portleIDs.add(importPortlet.getImportID());
ImportPortletsFailed failedPortlets = WSRPTypeFactory.createImportPortletsFailed(portleIDs, errorCode, reason);
failedPortletsMap.put(errorCode.name(), failedPortlets);
}
else
{
ImportPortletsFailed failedPortlets = failedPortletsMap.get(errorCode.name());
failedPortlets.getImportID().add(importPortlet.getImportID());
}
}
}
ResourceList resourceList = null; //TODO: figure out what exactly should be stored in the resource list here