final UserService userService = UserServiceFactory.getUserService();
final User user = tryGetCurrentUser(userService);
final Store.Api api = store.getApi();
try {
final Key surfaceKey = getSurfaceKeys(api, user).get(0);
final UserInfoResult result = new Service.UserInfoResult(new Author(user
.getEmail(), user.getNickname()), getSurface(api, surfaceKey),
userService.createLogoutURL(userService.createLoginURL("/")));
return result;
} finally {
api.close();