// creating header row from headerSQL (gets all columns in one row
DataRow headerRow = null;
if (headerFromSQL != null) {
headerRow = new DataRow(null);
SQLQuery headerQuery = session.createSQLQuery(headerFromSQL);
// needs to be there otherwise an exception is thrown
headerQuery.addScalar("stepCount", StandardBasicTypes.DOUBLE);
headerQuery.addScalar("stepName", StandardBasicTypes.STRING);
headerQuery.addScalar("stepOrder", StandardBasicTypes.DOUBLE);