String propertiesPrefix = JRXlsQueryExecuterFactory.XLS_COLUMN_NAMES;
List properties = JRProperties.getAllProperties(dataset, propertiesPrefix);
if (properties != null && !properties.isEmpty()) {
columnNamesList = new ArrayList();
for(int i = 0; i < properties.size(); i++) {
PropertySuffix property = (PropertySuffix)properties.get(i);
columnNamesList.add(property.getValue());
}
} else {
JRField[] fields = dataset.getFields();
if (fields != null && fields.length > 0)
{