}
catch(UnsupportedEncodingException e) {
throw new ServiceException("Unable to determine name of object created with signed PUT", e);
}
responseObject.replaceAllMetadata(ServiceUtils.cleanRestMetadataMap(
map, this.getRestHeaderPrefix(), this.getRestMetadataPrefix()));
responseObject.setMetadataComplete(true); // Flag this object as having the complete metadata set.
if(!headOnly) {
HttpMethodReleaseInputStream releaseIS = new HttpMethodReleaseInputStream(httpResponse);
responseObject.setDataInputStream(releaseIS);