{
try
{
ReviewPendingGroupRequest request = (ReviewPendingGroupRequest) inActionContext.getActionContext()
.getParams();
DomainGroup group = groupMapper.findByShortName(request.getGroupShortName());
final long groupId = group.getId();
if (log.isInfoEnabled())
{
log.info((request.getApproved() ? "Approving" : "Disapproving") + " pending group '"
+ request.getGroupShortName() + "' with id " + groupId);
}
notifyCoordinators(inActionContext, group, request);
if (request.getApproved())
{
group.setPending(false);
groupMapper.flush();
if (!group.isPublicGroup())
{
addPrivateGroupIdToCachedListMapper.execute(groupId);
}
}
else