String sLogComment = documentContext.getItemValueString("txtworkflowactivitylogComment");
if (!sLogComment.isEmpty())
sLogEntry.append(sLogComment);
@SuppressWarnings("unchecked")
List<String> logEntries = (List<String>) documentContext.getItemValue("txtworkflowactivitylog");
<BUG>if (logEntries == null)
logEntries = new Vector<String>();</BUG>
logEntries.add(sLogEntry.toString());
while (logEntries.size() > MAXIMUM_ACTIVITYLOGENTRIES) {
logger.fine(

String sLogComment = documentContext.getItemValueString("txtworkflowactivitylogComment");
if (!sLogComment.isEmpty())
sLogEntry.append(sLogComment);
@SuppressWarnings("unchecked")
List<String> logEntries = (List<String>) documentContext.getItemValue("txtworkflowactivitylog");
logEntries.add(sLogEntry.toString());
while (logEntries.size() > MAXIMUM_ACTIVITYLOGENTRIES) {
logger.fine(
