final Object jsonObject = JSONValue.parse(method.getResponseBodyAsString());
final JSONObject o = (JSONObject) jsonObject;
//{"message":"Please log in","errorCode":403}"
String errorCode = (String) o.get("errorCode");
if (errorCode != null) {
throw new EnMeExpcetion("Yourls error: " + errorCode);
}
yourlsShortUrl = (String) o.get("shorturl");
} catch (HttpException e) {
log.error("HttpException "+ e);
yourlsShortUrl = string;