public class BuilderResultHelper {
public List<BuilderResultLine> generateBuilderResults(List<ContentAssemblyError> errors) {
List<BuilderResultLine> result = new ArrayList<BuilderResultLine>(errors.size());
for (int i = 0; i < errors.size(); i++) {
ContentAssemblyError err = errors.get(i);
BuilderResultLine res = new BuilderResultLine();
res.setAssetName(err.getName());
res.setAssetFormat(err.getFormat());
res.setMessage(err.getErrorReport());
res.setUuid(err.getUUID());
result.add(res);
}
return result;
}