List<DurationFieldType> result = new ArrayList<DurationFieldType>();
if (getIncludedFields() == null) {
result.add(DurationFieldType.hours());
result.add(DurationFieldType.minutes());
} else {
PeriodType standard = PeriodType.standard();
for (int index = 0; index < standard.size(); index++) {
if (getIncludedFields().contains(standard.getFieldType(index).getName())) {
result.add(standard.getFieldType(index));
}
}
}
return result.toArray(new DurationFieldType[] {});
}