person.setDisplayNameSuffix(displayNameSuffix);
// create and add start page tabs
TabGroup startTabGroup = new TabGroup();
PersonPropertiesResponse properties = personPropertiesGenerator.getPersonProperties(inFields);
for (TabTemplate tt : properties.getTabTemplates())
{
for (Gadget gadget : tt.getGadgets())
{
gadget.setOwner(person);
}
startTabGroup.addTab(new Tab(tt));
}
person.setStartTabGroup(startTabGroup);
person.setTheme(properties.getTheme());
// Make the default view for a person
StreamScope personScope = new StreamScope(ScopeType.PERSON, (String) inFields.get("accountId"));
person.setStreamScope(personScope);