if (entry.getValue().getStatus() == ActivityStatus.ERROR)
{
ProcessingElementErrorType pe =
mObjectFactory.createProcessingElementErrorType();
// TODO activity name needs to be mapped to processing element
Activity activity = mActivities.get(entry.getKey());
if (activity != null)
{
pe.setType(activity.getActivityName().toString());
}
else
{
// if the activity instance can't be mapped then it was
// inserted automatically by OGSA-DAI