List parametersToFill = new ArrayList();
if (parametersToFill != null && parametersToFill.size() > 0) {
Iterator it = parametersToFill.iterator();
while (it.hasNext()) {
DataSetParameterItem aDataSetParameterItem = (DataSetParameterItem) it.next();
SDKDataSetParameter sdkParameter = findRelevantSDKDataSetParameter(aDataSetParameterItem, sdkDataSet);
if (sdkParameter == null) {
logger.error("SDKDataSetParameter for DataSetParameterItem with name [" + aDataSetParameterItem.getName() + "] not found!!");
throw new MissingParameterValue(aDataSetParameterItem.getName());
}
String[] values = sdkParameter.getValues();
logger.debug("Values set for parameter [" + aDataSetParameterItem.getName() + "] are: " + values);
if (values == null || values.length == 0) {
logger.error("SDKDataSetParameter contains no values for DataSetParameterItem with name [" + aDataSetParameterItem.getName() + "]!!");
throw new MissingParameterValue(aDataSetParameterItem.getName());
}