for (Iterator iter = limitTypes.iterator(); iter.hasNext();) {
String limitType = (String) iter.next();
if (newFileResource.getResourceableTypeName().equals(limitType)) validType = true;
}
if (!validType) { // rollback
frm.deleteFileResource(newFileResource);
getWindowControl().setError(translator.translate("add.wrongtype"));
addCallback.failed(urequest);
return;
}
}