} else if (data.getIntegerCount() > 0) {
return new PersistedInteger(data.getInteger(index));
} else if (data.getDoubleCount() > 0) {
return new PersistedDouble(data.getDouble(index));
} else if (data.getBooleanCount() > 0) {
return new PersistedBoolean(data.getBoolean(index));
} else if (data.getLongCount() > 0) {
return new PersistedLong(data.getLong(index));
} else if (data.getStringCount() > 0) {
return new PersistedString(data.getString(index));
} else if (data.hasBytes()) {