if (contentType != null) {
conn.setRequestProperty("Content-Type", contentType);
}
// authenticate
AbstractAuthenticationProvider authProvider = CmisBindingsHelper.getAuthenticationProvider(session);
if (authProvider != null) {
Map<String, List<String>> httpHeaders = authProvider.getHTTPHeaders(url.toString());
if (httpHeaders != null) {
for (Map.Entry<String, List<String>> header : httpHeaders.entrySet()) {
if (header.getValue() != null) {
for (String value : header.getValue()) {
conn.setRequestProperty(header.getKey(), value);