class ProjectServiceImpl extends AbstractProjectServiceImpl implements ProjectService {

    @Override
    public ServiceResult<OrganisationResource> getLeadOrganisation(long projectId) {
        return getProject(projectId)
                .andOnSuccessReturn(p -> p.getApplication().getLeadOrganisationId())
                .andOnSuccess(this::getOrganisation)
                .andOnSuccessReturn(o -> organisationMapper.mapToResource(o));
    }

}