ArrayList parameters = new ArrayList();
// the extended attributes are always the first parameter passed to tool agent
String appPStr=app.getExtendedAttributes().getExtendedAttributesString();
AppParameter param=new AppParameter("ExtendedAttributes","ExtendedAttributes",XPDLConstants.FORMAL_PARAMETER_MODE_IN,appPStr,String.class);
parameters.add(param);
ActualParameters aps=tool.getActualParameters();
FormalParameters fps=app.getApplicationTypes().getFormalParameters();
Map m=createContextMap(aps,fps);
Iterator itFps=fps.toElements().iterator();
Iterator itAps=aps.toElements().iterator();
while (itFps.hasNext() && itAps.hasNext()) {
FormalParameter fp=(FormalParameter)itFps.next();
ActualParameter ap=(ActualParameter)itAps.next();
String fpMode=fp.getMode();
String fpId=fp.getId();
Object paramVal=m.get(fpId);
param=new AppParameter(ap.toValue(),fpId,fpMode,paramVal,SharkUtilities.getJavaClass(fp));
parameters.add(param);
}
ApplicationMappingManager mm=SharkEngineManager.getInstance().getApplicationMapPersistenceManager();
ApplicationMap tad=null;
if (mm!=null) {