public String getUnity(PmiStatsType pmiStatsType, E statistic) { String unity = (pmiStatsType.isUnit()) ? "_" + statistic.getUnit() + " " : " "; if ("N/A".equals(statistic.getUnit()) || statistic.getUnit() == null) { unity = " "; } return unity.toLowerCase(); }