}
List<Profile> projectProfiles;
try
{
projectProfiles = new ArrayList<Profile>();
<BUG>profileManager.addProfiles( domainModel.getModel().getProfiles() );
</BUG>
if ( configuration.getProfiles() != null )
{
<BUG>profileManager.addProfiles( configuration.getProfiles() );
}
projectProfiles.addAll( profileManager.getActiveProfiles() );

}</BUG>
catch ( ProfileActivationException e )

}
DomainModel domainModel;
try
{
domainModel = build( "unknown", pomFile, configuration );
