}
@Override
public Set<NameValuePair> setup(String language, Set<NameValuePair> nvps) {
for (int i = 0; i < texts.size(); i++) {
Text text = texts.get(i);
if (text.getSummary() != null) {
nvps.add(new BasicNameValuePair(name + "[" + language + "][" + i
+ "][summary]", text.getSummary()));
}
if (text.getValue() != null) {
nvps.add(new BasicNameValuePair(name + "[" + language + "][" + i
+ "][value]", text.getValue()));
}
if (text.getFormat() != null) {
nvps.add(new BasicNameValuePair(name + "[" + language + "][" + i
+ "][format]", text.getFormat()));
}
}
return nvps;
}