String cmntText = "The file "
+ fileName
+ " exceeds the byte limit to attach a file to a case; therefore, the file was uploaded to "
+ connectionManager.getConfig().getFtpHost() + "as "
+ file.getName();
Comment comment = new Comment();
comment.setCaseNumber(caseNumber);
comment.setPublic(true);
comment.setText(cmntText);
Comments comments = new Comments(connectionManager);
comments.add(comment);
} else {
WebResource webResource = connectionManager.getConnection()
.resource(