public JSONObject getMetaData(String appId) throws Exception {
BeesClient client = beesClientFactory.get(BeesClient.class);
Map<String, String> params = new HashMap<String, String>();
params.put("app_id", appId);
String url = client.getRequestURL("application.platform.metadata", params);
String response = client.executeRequest(url);
SAXBuilder sxb = new SAXBuilder();
Document document = sxb.build(new StringReader(response));
String js = document.getRootElement().getChild("message").getText();