private Text[] getTexts(final Text[] originalTexts, final String[] newStrings) {
if (newStrings != null && newStrings.length > 0 && (originalTexts == null || originalTexts.length == 0)) {
final Text[] texts = new Text[newStrings.length];
for (int i = 0; i < newStrings.length; i++) {
texts[i] = new Text(null, newStrings[i]);
}
return texts;
} else {
return originalTexts;