public void perform() {
super.perform();
// If this is a detail section and the field represents a database
// column, add a title field whose name is the name of the column.
SectionWidget sw = fw.getSectionWidget();
Field f = fw.getField();
if (sw.getSection().isDetail() && (f instanceof ColumnField)) {
Column col = (Column)((ColumnField)f).getColumn();
String name = col.getName();
name = name.substring(0, 1).toUpperCase()
+ name.substring(1).toLowerCase();
// The title section resize command may not be used.
Section titleSection = f.getReport().pageHeaders().first();
SectionWidget titleSectionWidget =
sw.getDesigner().findSectionWidgetFor(titleSection);
titleSectionResizeCommand =
new SectionResizeCommand(titleSectionWidget);
// Possible the title field. If no title field added, titleField