@OperationMethod
public Blob run() throws Exception {
SocialWorkspace socialWorkspace = socialWorkspaceService.getDetachedSocialWorkspace(
session, new PathRef(contextPath));
List<String> users = socialWorkspace.searchMembers(pattern);
return buildResponse(users);
}
protected Blob buildResponse(List<String> users)
throws UnsupportedEncodingException, ClientException {