protected ActivityNode createActivityNodeEntity(String requestUrl, ActivityNode activityNode, String fileName, InputStream fileContent, String mimeType, Map<String, String> parameters) throws ClientServicesException {
try {
ActivityNodeSerializer serializer = new ActivityNodeSerializer(activityNode);
List<ClientService.ContentPart> contentParts = new ArrayList<ClientService.ContentPart>();
contentParts.add(new ContentPart("activityNode", serializer.generateCreate(), APPLICATION_ATOM_XML));
contentParts.add(new ContentPart(fileName, fileContent, fileName, mimeType));
Response response = createData(requestUrl, parameters, getMultipartHeaders(), contentParts);
checkResponseCode(response, HTTPCode.CREATED);
return updateActivityNodeEntityData(activityNode, response);
} catch (ClientServicesException e) {