if (parameters[0] == null || parameters[0].length() == 0)
logger.warning("Socialevent title is null!");
else
logger.finer("addEvent adding event title: " + parameters[0]);
params.add(new StringPart("title", parameters[0])); //title
params.add(new StringPart("summary", parameters[1])); // summary
params.add(new StringPart("description", parameters[2])); // description
params.add(new StringPart("submitter_user_name", parameters[3]));
params.add(new StringPart("telephone", parameters[4])); //phone
params.add(new StringPart("timezone", parameters[5])); //timezone
params.add(new StringPart("year", parameters[6]));
params.add(new StringPart("month", parameters[7]));
params.add(new StringPart("day", parameters[8]));
params.add(new StringPart("hour", parameters[9]));
params.add(new StringPart("minute", parameters[10]));
params.add(new StringPart("tags", parameters[11]));
//add the address
String[] addressArr = prepareAddress();
params.add(new StringPart("street1", addressArr[0]));
params.add(new StringPart("street2", addressArr[1]));
params.add(new StringPart("city", addressArr[2]));
params.add(new StringPart("state", addressArr[3]));
params.add(new StringPart("zip", addressArr[4]));
params.add(new StringPart("country", addressArr[5]));
params.add(new FilePart("upload_event_image", eventImg));
params.add(new FilePart("upload_event_literature",eventPdf));
params.add(new StringPart("submit", "Create"));
/****
Part[] parts = new Part[params.size()];
parts = params.toArray(parts);
PostMethod post = new PostMethod(fileUploadEventURL);