@ Override public ProposalPersonContract getPrincipalInvestigator ( ProposalDevelopmentDocumentContract pdDoc ) { ProposalPersonContract proposalPerson = null ; if ( pdDoc != null ) { for ( ProposalPersonContract person : pdDoc . getDevelopmentProposal ( ) . getProposalPersons ( ) ) { if ( person . isPrincipalInvestigator ( ) ) { proposalPerson = person ; } } } return proposalPerson ; }
This method is to get PrincipalInvestigator from person list