171172173174175176177178
private ListItem createListItem(File f) { if(this.policy.getPolicyType() == ImageUploadPolicy.POLICY_TYPE_IMG){ return new ImageItem(this.configHolder, f); }else{ return new FileItem(this.configHolder, f); } }