I removed the lines that were unused. The for code is doing the job. The method I included belongs to the ArtifactSummary class, not to the BaseArtifactType. I ve already included this change