package gov.samhsa.c2s.c2suiapi.service;

import com.netflix.hystrix.exception.HystrixRuntimeException;
import feign.FeignException;
import gov.samhsa.c2s.c2suiapi.infrastructure.PhrClient;
import gov.samhsa.c2s.c2suiapi.service.exception.NoDocumentsFoundException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PhrServiceImpl implements PhrService{

    private final PhrClient phrClient;

    @Autowired
    public PhrServiceImpl(PhrClient phrClient) {
        this.phrClient = phrClient;
    }

    @Override
    public List<Object> getAllDocumentTypeCodesList(){
        return phrClient.getAllDocumentTypeCodesList();
    }

    @Override
    public List<Object> getPatientDocumentInfoList(String patientMrn){
        try{
            return phrClient.getPatientDocumentInfoList(patientMrn);
        }catch(HystrixRuntimeException err) {
            Throwable t = err.getCause();
            if(t instanceof FeignException && ((FeignException) t).status() == 404){
                throw new NoDocumentsFoundException(t.getMessage());
            }
        }
        return null;
    }

}

@@ -831,31 +831,91 @@
     
-try%7B%0A            return
+List%3CObject%3E uploadedDocuments = null;%0A        try%7B%0A            uploadedDocuments =
  phr
@@ -1242,20 +1242,33 @@
  return 
-null
+uploadedDocuments
 ;%0A    %7D%0A

Split into declaration and assignment