7374757677787980818283
try { List<GetUserResponse> users = new ArrayList<>(); for (UserMetadata userMetadata : tx.getUsers()) { users.add(new GetUserResponse(userMetadata)); } return new GetUsersResponse(users); } finally { tx.commit();
9596979899100101102103104
if (userMetadata == null) { throw new NotFound(UserMetadata.class, userId); } return new GetUserResponse(userMetadata); } finally { tx.commit(); } }