public void loadSync(String itemId) throws ClearBladeException { loadSetup(itemId); PlatformResponse<String> result = request.execute(); if (result.getError()) { throw new ClearBladeException("Call to Load failed:" + result.getData()); } else { this.json = convertJsonArrayToJsonObject(result.getData()); } }
public Item[] saveSync() throws ClearBladeException { saveSetup(); PlatformResponse<String> result = request.execute(); if (result.getError()) { throw new ClearBladeException("Call to Load failed:" + result.getData()); } else { this.json = convertJsonArrayToJsonObject(result.getData()); } Item[] ret = {this}; return ret; }