JSGroups groups = null;
JSRoles roles = null;
groups = ((JSSeedData)getSnapshot()).getGroups();
Iterator _it = groups.iterator();
while (_it.hasNext())
{
String name = ((JSGroup)_it.next()).getName();
try
{
if (!(groupManager.groupExists(name)))
groupManager.addGroup(name);
Group group = groupManager.getGroup(name);
this.groupMap.put(name, group.getPrincipal());
} catch (Exception e)
{
throw new SerializerException(
SerializerException.CREATE_OBJECT_FAILED
.create(new String[]
{ "Group", e.getMessage()}));
}
}
logMe("recreateGroups - done");
logMe("processing roles");
roles = ((JSSeedData)getSnapshot()).getRoles();
_it = roles.iterator();
while (_it.hasNext())
{
String name = ((JSRole)_it.next()).getName();
try