public static List<ColumnMetaData> getColumnMetaData(final String key, final MetaData columnMD) {
        if (key == null || key.equals(FPConstants.DETAIL_ID) || key.equals(FPConstants.COL_IDX)) {
            return columnMD.getColumnsNames();
        }

        return columnMD.getListColumnsForRecord(key);
    }