Validation-Manager-Web/src/main/java/net/sourceforge/javydreamercsw/validation/manager/web/service/VMWebService.java
@WebMethod(operationName = "getRootProjects")
    public List<Project> getRootProjects(@WebParam(name = "user") final VmUser user)
            throws VMException {
        List<Project> projects = new ArrayList<>();
        if (isValidUser(user.getUsername(), user.getPassword()) != null) {
            ProjectJpaController controller
                    = new ProjectJpaController(DataBaseManager
                            .getEntityManagerFactory());
            controller.findProjectEntities().stream().filter((p)
                    -> (p.getParentProjectId() == null)).forEachOrdered((p) -> {
                projects.add(p);
            });
        }
@WebMethod(operationName = "getRootProjects")
    public List<Project> getRootProjects(@WebParam(name = "user") final VmUser user)
            throws VMException {
        List<Project> projects = new ArrayList<>();
        if (isValidUser(user.getUsername(), user.getPassword()) != null) {
            ProjectJpaController controller
                    = new ProjectJpaController(DataBaseManager
                            .getEntityManagerFactory());
            controller.findProjectEntities().stream().filter((p)
                    -> (p.getParentProjectId() == null)).forEachOrdered((p) -> {
                projects.add(p);
            });
        }
Web service operation

@param user User requesting the information.
@return List of root projects.
@throws com.validation.manager.core.VMException