private static List<Profile> toNativeProfiles(List<MavenProfile> profiles) {
    List<Profile> result = new ArrayList<Profile>(profiles.size());
    for (MavenProfile each : profiles) {
      Profile p = new Profile();
      p.setId(each.getId());
      p.setSource(each.getSource());
      p.setBuild(new Build());
      p.setActivation(toNativeActivation(each.getActivation()));
      toNativeModelBase(each, p);
      toNativeBuildBase(each.getBuild(), p.getBuild());
      result.add(p);
    }
    return result;
  }
private static List<Profile> toNativeProfiles(List<MavenProfile> profiles)