if (policy != null && policy.equals("file")) {
FileUploadPolicy fup = new FileUploadPolicy(this);
this.map.put("global.policy", fup);
} else if (policy != null && policy.equals("original-image")) {
OriginalImageUploadPolicy oiup = new OriginalImageUploadPolicy(this);
this.map.put("global.policy", oiup);
} else /* in all other cases we will user image upload policy */ {
ImageUploadPolicy iup = new ImageUploadPolicy(this);
this.map.put("global.policy", iup);
putImagePolicyRelatedParamsToConfig(applet);