@Override public es.danirod.rectball.model.Statistics loadStatistics() { try { // Read stats from file and decode them. FileHandle handle = getStatistics(); String encodedJson = handle.readString(); String decodedJson = Base64Coder.decodeString(encodedJson); // Convert JSON to statistics Json json = new Json(); return json.fromJson(es.danirod.rectball.model.Statistics.class, decodedJson); } catch (Exception ex) { return new es.danirod.rectball.model.Statistics(); } }