List newConstraints = new ArrayList<SDKConstraint>();
if (checks != null && !checks.isEmpty()) {
Iterator checksIt = checks.iterator();
while (checksIt.hasNext()) {
Check aCheck = (Check) checksIt.next();
SDKConstraint constraint = fromCheckToSDKConstraint(aCheck);
newConstraints.add(constraint);
}
}
it.eng.spagobi.sdk.documents.bo.SDKConstraint[] constraintsArray = new it.eng.spagobi.sdk.documents.bo.SDKConstraint[newConstraints.size()];
constraintsArray = (it.eng.spagobi.sdk.documents.bo.SDKConstraint[]) newConstraints.toArray(constraintsArray);