private List<SimplifiedProject> toSimplifiedProjects(final List<Project> projects) {
    final List<SimplifiedProject> simplifiedProjects = new ArrayList<>();
    for (final Project p : projects) {
      final SimplifiedProject sp =
          new SimplifiedProject(p.getId(), p.getName(),
              p.getLastModifiedUser(), p.getCreateTimestamp(),
              p.getUserPermissions(), p.getGroupPermissions());
      simplifiedProjects.add(sp);
    }
    return simplifiedProjects;
  }
private List < SimplifiedProject > toSimplifiedProjects ( final List < Project > projects ) { final List < SimplifiedProject > simplifiedProjects = new ArrayList < > ( ) ; for ( final Project p : projects ) { final SimplifiedProject sp = new SimplifiedProject ( p . getId ( ) , p . getName ( ) , p . getLastModifiedUser ( ) , p . getCreateTimestamp ( ) , p . getUserPermissions ( ) , p . getGroupPermissions ( ) ) ; simplifiedProjects . add ( sp ) ; } return simplifiedProjects ; }
A simple helper method that converts a List<Project> to List<SimplifiedProject>