context = serverFileName.substring(0, index);
} else {
context = serverFileName;
}
//Check to see if a record exists
PortletEntityRegistryXao xao = new PortletEntityRegistryXao();
boolean appExists = xao.applicationExists(context);
ArrayList argList = createDeploymentArgs(serverFileName, tempDir, request, appExists, context);
Map pmap = (HashMap) request.getPortletSession().getAttribute(PlutoAdminConstants.PORTLET_MAP_ATTR);
logDebug(METHOD_NAME, "Arguments for Deploy.main():");
String[] args = arrayListToStringArray(argList);
for (int i =0; i < args.length; i++) {