private DirectorType[] getCoProjectDirectoryType() {
        DirectorType[] directorTypes = new DirectorType[0];
        List<DirectorType> directorTypeList = new ArrayList<>();
        if (pdDoc.getDevelopmentProposal().getProposalPersons() != null) {
            ProposalPersonContract CoPI = null;
            for (ProposalPersonContract proposalPerson : pdDoc.getDevelopmentProposal().getProposalPersons()) {
                DirectorType coDirectorType = DirectorType.Factory.newInstance();
                if (proposalPerson.getProposalPersonRoleId() != null) {
                    if (KEYPERSON_TYPE_C0_INVESTIGATOR.equals(proposalPerson.getProposalPersonRoleId())) {
                        CoPI = proposalPerson;
                        coDirectorType.setName(globLibV20Generator.getHumanNameDataType(CoPI));
                        directorTypeList.add(coDirectorType);
                    }
                }
            }
        }
        directorTypes = directorTypeList.toArray(directorTypes);
        return directorTypes;
    }
private DirectorType [ ] getCoProjectDirectoryType ( ) { DirectorType [ ] directorTypes = new DirectorType [ 0 ] ; List < DirectorType > directorTypeList = new ArrayList < > ( ) ; if ( pdDoc . getDevelopmentProposal ( ) . getProposalPersons ( ) != null ) { ProposalPersonContract CoPI = null ; for ( ProposalPersonContract proposalPerson : pdDoc . getDevelopmentProposal ( ) . getProposalPersons ( ) ) { DirectorType coDirectorType = DirectorType . Factory . newInstance ( ) ; if ( proposalPerson . getProposalPersonRoleId ( ) != null ) { if ( KEYPERSON_TYPE_C0_INVESTIGATOR . equals ( proposalPerson . getProposalPersonRoleId ( ) ) ) { CoPI = proposalPerson ; coDirectorType . setName ( globLibV20Generator . getHumanNameDataType ( CoPI ) ) ; directorTypeList . add ( coDirectorType ) ; } } } } directorTypes = directorTypeList . toArray ( directorTypes ) ; return directorTypes ; }
This method is used to get List of Personal details of Co-Investigator

@return DirectorType[] Array of director types.