@Override
public List<String> addSocialWorkspaceMembers(
SocialWorkspace socialWorkspace, String groupName)
throws ClientException {
NuxeoGroup group = getUserManager().getGroup(groupName);
if (group == null) {
throw new ClientException(String.format("Group (%s) not found",
groupName));
}
List<String> importedUsers = new ArrayList<String>();
List<Principal> importedPrincipal = new ArrayList<Principal>();
for (String userName : group.getMemberUsers()) {
NuxeoPrincipal principal = userManager.getPrincipal(userName);
if (principal == null) {
log.info(String.format("User (%s) doesn't exist.", userName));
continue;
}