}
private Artifact buildArtifact( BaseFile file )
throws BuilderException
{
LayoutArtifactBuilder builder = (LayoutArtifactBuilder) artifactBuilders.get( layoutId );
Artifact artifact = builder.build( file.getRelativePath() );
artifact.setRepository( repository );
artifact.setFile( file );
return artifact;
}