final Object objval = this.getFirstArg(true);
if (TypeSupport.isACollection(objval)) {
for (final GenericValue val : (Collection<GenericValue>)objval) {
try {
final String rangeValue = (String)val.getValue(null, null);
final RowRequest rowRequest = this.newGet(withArgs, columnAttribs, keyAttrib, rangeValue);
rowRequestList.add(rowRequest);
}
catch (ResultMissingColumnException e) {
throw new InternalErrorException("Missing column: " + val.asString());
}
catch (NullColumnValueException e) {
throw new InternalErrorException("Null value: " + e.getMessage());
}
}
}
else {
final String rangeValue = (String)objval;
final RowRequest rowRequest = this.newGet(withArgs, columnAttribs, keyAttrib, rangeValue);
rowRequestList.add(rowRequest);
}
return rowRequestList;
}