obj.add("providerUuid", provider.getUuid());
ArrayList attributesObj = new ArrayList();
Iterator<ProviderAttribute> attributesIterator = provider.getActiveAttributes().iterator();
while (attributesIterator.hasNext()) {
SimpleObject attributeObj = new SimpleObject();
ProviderAttribute pAttribute = attributesIterator.next();
attributeObj.add("attributeType", pAttribute.getAttributeType().getName());
attributeObj.add("value", pAttribute.getValue());
attributesObj.add(attributeObj);
}
obj.add("providerAttributes", attributesObj);
}
obj.add("display", p.getPersonName().getFullName());