protected static final Log log = LogFactory.getLog(UserResource.class);
@GET
@Path("uid/{uid}")
public UserBean getProfile(@PathParam("uid") String uid) {
UserStore user;
UserBean result;
try {
user = new UserStore(uid);
result = user.get();
} catch (Exception e) {
log.error(ExceptionUtil.getStackTrace(e));
throw new WebApplicationException(Response.status(Response.Status.NOT_FOUND)
.entity("User does not exist.").build());
}