private Person addAttributes(Person p, SimpleObject post) throws ResponseException {
List<LinkedHashMap> attributeObjects = (List<LinkedHashMap>) post.get("attributes");
for (int i = 0; i < attributeObjects.size(); i++) {
if (attributeObjects.get(i).get("attributeType") != null && attributeObjects.get(i).get("value") != null) {
PersonAttribute pa = new PersonAttribute();
PersonAttributeType paType = Context.getPersonService().getPersonAttributeTypeByUuid(
attributeObjects.get(i).get("attributeType").toString());
if (paType == null) {
throw new ResponseException(
"Person Attribute Type not found") {};
}