@GET
@Produces("application/json")
public JSONObject getUser() throws JSONException {
if (null == userEntity) {
throw new ExtendedNotFoundException("userid " + userid + "does not exist!");
}
return new JSONObject().
put("userid", userEntity.getUserid()).
put("username", userEntity.getUsername()).
put("email", userEntity.getEmail()).