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]));
params.add(new StringPart("description", parameters[1]));
params.add(new StringPart("telephone", parameters[3]));
params.add(new StringPart("timezone", parameters[4]));
//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 StringPart("year", parameters[5]));
params.add(new StringPart("month", parameters[6]));
params.add(new StringPart("day", parameters[7]));
params.add(new StringPart("hour", parameters[8]));
params.add(new StringPart("minute", parameters[9]));
params.add(new StringPart("tags", parameters[2]));
params.add(new StringPart("submitter_user_name", username));
// We do the images last, not to split the fields into parts
params.add(new FilePart("upload_image", eventImg));
params.add(new FilePart("upload_literature", eventPdf));
params.add(new StringPart("addeventsubmit", "Create"));
((ApacheHC3Transport) http).fetchURL(addEventResultURL, params);
int status = http.getResponseCode();
String[] locationHeader = http.getResponseHeader("location");
if (locationHeader != null) {