class OrganisationServiceImpl implements OrganisationService {

    @Override
    public Long getOrganisationType(long userId, long applicationId) {
        final ProcessRoleResource processRoleResource = userRestService.findProcessRole(userId, applicationId).getSuccess();
        if (processRoleResource != null && processRoleResource.getOrganisationId() != null) {
            final OrganisationResource organisationResource = organisationRestService.getOrganisationById(processRoleResource.getOrganisationId()).getSuccess();
            return organisationResource.getOrganisationType();
        }
        return null;
    }

    public  OrganisationServiceImpl(OrganisationRestService organisationRestService,
                                   UserRestService userRestService, UserService userService);

}