@Override
public DomainGroup get(final TaskHandlerActionContext<PrincipalActionContext> inActionContext,
final Map<String, Serializable> inFields)
{
long id = Long.parseLong(inFields.get("id").toString());
DomainGroup entity = getGroupMapper().findById(id);
// store the original domain group name between get and persist
inFields.put(ORIGINAL_GROUP_NAME_KEY, entity.getName());
inFields.put(ORIGINAL_GROUP_COORDINATORS_KEY, (Serializable) entity.getCoordinators());
// clear out the search text for the group coordinators now, before we
// commit to the db
if (!entity.isPublicGroup())
{
clearActivityStreamSearchStringForUsersMapper.execute(entity.getId());
}
return entity;
}