private AORInfoType getAORInfoType() {
		ProposalSiteContract applicantOrganization = pdDoc.getDevelopmentProposal()
				.getApplicantOrganization();
		AORInfoType aorInfoType = AORInfoType.Factory.newInstance();
		if (departmentalPerson != null) {
			aorInfoType.setName(globLibV20Generator
					.getHumanNameDataType(departmentalPerson));
			if (departmentalPerson.getPrimaryTitle() != null) {
				if (departmentalPerson.getPrimaryTitle().length() > PRIMARY_TITLE_MAX_LENGTH) {
					aorInfoType.setTitle(departmentalPerson.getPrimaryTitle()
							.substring(0, PRIMARY_TITLE_MAX_LENGTH));
				} else {
					aorInfoType.setTitle(departmentalPerson.getPrimaryTitle());
				}
			} else {
				aorInfoType.setTitle("");
			}
			AddressDataType address = AddressDataType.Factory.newInstance();
			address.setStreet1(departmentalPerson.getAddress1());
			address.setStreet2(departmentalPerson.getAddress2());
			address.setCity(departmentalPerson.getCity());
			if (departmentalPerson.getState() != null) {
				address.setState(globLibV20Generator
						.getStateCodeDataType(departmentalPerson.getCountryCode(), departmentalPerson.getState()));
			}
			address.setZipPostalCode(departmentalPerson.getPostalCode());
			if (departmentalPerson.getCountryCode() != null) {
				address.setCountry(globLibV20Generator
						.getCountryCodeDataType(departmentalPerson
								.getCountryCode()));
			}
			aorInfoType.setAddress(address);
			aorInfoType.setPhone(departmentalPerson.getOfficePhone());
            if (StringUtils.isNotEmpty(departmentalPerson.getFaxNumber())) {
			    aorInfoType.setFax(departmentalPerson.getFaxNumber());
            }
			aorInfoType.setDepartmentName(departmentalPerson.getDirDept().substring(0, DEPARTMENT_NAME_MAX_LENGTH));
			aorInfoType.setEmail(departmentalPerson.getEmailAddress());
			if (departmentalPerson.getHomeUnit() != null) {
				aorInfoType.setDivisionName(StringUtils.substring(departmentalPerson.getHomeUnit(), 0, DIVISION_NAME_MAX_LENGTH));
			}
		}
		if (applicantOrganization != null) {
			aorInfoType.setOrganizationName(applicantOrganization
					.getLocationName());
		}
		return aorInfoType;
	}
private AORInfoType getAORInfoType ( ) { ProposalSiteContract applicantOrganization = pdDoc . getDevelopmentProposal ( ) . getApplicantOrganization ( ) ; AORInfoType aorInfoType = AORInfoType . Factory . newInstance ( ) ; if ( departmentalPerson != null ) { aorInfoType . setName ( globLibV20Generator . getHumanNameDataType ( departmentalPerson ) ) ; if ( departmentalPerson . getPrimaryTitle ( ) != null ) { if ( departmentalPerson . getPrimaryTitle ( ) . length ( ) > PRIMARY_TITLE_MAX_LENGTH ) { aorInfoType . setTitle ( departmentalPerson . getPrimaryTitle ( ) . substring ( 0 , PRIMARY_TITLE_MAX_LENGTH ) ) ; } else { aorInfoType . setTitle ( departmentalPerson . getPrimaryTitle ( ) ) ; } } else { aorInfoType . setTitle ( "" ) ; } AddressDataType address = AddressDataType . Factory . newInstance ( ) ; address . setStreet1 ( departmentalPerson . getAddress1 ( ) ) ; address . setStreet2 ( departmentalPerson . getAddress2 ( ) ) ; address . setCity ( departmentalPerson . getCity ( ) ) ; if ( departmentalPerson . getState ( ) != null ) { address . setState ( globLibV20Generator . getStateCodeDataType ( departmentalPerson . getCountryCode ( ) , departmentalPerson . getState ( ) ) ) ; } address . setZipPostalCode ( departmentalPerson . getPostalCode ( ) ) ; if ( departmentalPerson . getCountryCode ( ) != null ) { address . setCountry ( globLibV20Generator . getCountryCodeDataType ( departmentalPerson . getCountryCode ( ) ) ) ; } aorInfoType . setAddress ( address ) ; aorInfoType . setPhone ( departmentalPerson . getOfficePhone ( ) ) ; if ( StringUtils . isNotEmpty ( departmentalPerson . getFaxNumber ( ) ) ) { aorInfoType . setFax ( departmentalPerson . getFaxNumber ( ) ) ; } aorInfoType . setDepartmentName ( departmentalPerson . getDirDept ( ) . substring ( 0 , DEPARTMENT_NAME_MAX_LENGTH ) ) ; aorInfoType . setEmail ( departmentalPerson . getEmailAddress ( ) ) ; if ( departmentalPerson . getHomeUnit ( ) != null ) { aorInfoType . setDivisionName ( StringUtils . substring ( departmentalPerson . getHomeUnit ( ) , 0 , DIVISION_NAME_MAX_LENGTH ) ) ; } } if ( applicantOrganization != null ) { aorInfoType . setOrganizationName ( applicantOrganization . getLocationName ( ) ) ; } return aorInfoType ; }
This method is used to get AOR Information for RRSf424

@return aorInfoType(AORInfoType) Authorized representative information.