if (fields.hasNext()) {
// it has fields, so this is a structure entry.
// NOTE: schema says each field can contain multiple values but
// this is not used so is not implemented.
while (fields.hasNext()) {
PolicyField field = (PolicyField) fields.next();
String name = entry.getName() + "." + field.getName();
device.setPolicyValue(name, field.getValue());
}
} else if (values.hasNext()) {
// it has values, so it is a simple entry which may have
// multiple values.
String value = (String) values.next();