class UserServiceImpl implements UserService {

    @Override
    public List<ProcessRoleResource> getOrganisationProcessRoles(ApplicationResource application, Long organisation) {
        List<ProcessRoleResource> userApplicationRoles = userRestService.findProcessRole(application.getId()).getSuccess();
        return userApplicationRoles.stream()
                .filter(prr -> organisation.equals(prr.getOrganisationId()))
                .collect(Collectors.toList());
    }

}