public BodyColumnTemplate getBodyColumnTemplate(DataColumnTemplate dct) { if (dct != null) { String keyName = dct.getKeyName(); if (this.bodyColumnMap.containsKey(keyName)) { return this.bodyColumnMap.get(keyName); } else { BodyColumnTemplate bct = this._createBodyColumnTemplate(dct); this.bodyColumnMap.put(keyName, bct); return bct; } } else { Print.logStackTrace("DataColumnTemplate is null!"); return null; } }
public HeaderColumnTemplate getHeaderColumnTemplate(DataColumnTemplate dct) { if (dct != null) { String keyName = dct.getKeyName(); if (this.headerColumnMap.containsKey(keyName)) { return this.headerColumnMap.get(keyName); } else { HeaderColumnTemplate hct = this._createHeaderColumnTemplate(dct); this.headerColumnMap.put(keyName, hct); return hct; } } else { Print.logStackTrace("DataColumnTemplate is null!"); return null; } }