private LobbyingActivitiesDisclosureDocument getLobbyingActivitiesDisclosure() {

        LobbyingActivitiesDisclosureDocument lobbyinADDocument = LobbyingActivitiesDisclosureDocument.Factory.newInstance();
        LobbyingActivitiesDisclosure lobbyingDisclosure = LobbyingActivitiesDisclosure.Factory.newInstance();
        lobbyingDisclosure.setFormVersion(FormVersion.v1_1.getVersion());
        lobbyingDisclosure.setFederalActionType(FederalActionType.GRANT);
        lobbyingDisclosure.setFederalActionStatus(FederalActionStatus.BID_OFFER);
        lobbyingDisclosure.setReportType(ReportDataType.INITIAL_FILING);
        lobbyingDisclosure.setReportEntity(getReportEntity());
        lobbyingDisclosure.setFederalAgencyDepartment("");
        SponsorContract sponsor = pdDoc.getDevelopmentProposal().getSponsor();
        if (sponsor != null) {
            if (sponsor.getSponsorName() != null) {
                if (sponsor.getSponsorName().length() > SPONSOR_NAME_MAX_LENGTH) {
                    lobbyingDisclosure.setFederalAgencyDepartment(sponsor.getSponsorName().substring(0, SPONSOR_NAME_MAX_LENGTH));
                }
                else {
                    lobbyingDisclosure.setFederalAgencyDepartment(sponsor.getSponsorName());
                }
            }
        }
        else {
            String primeSponsorCode = pdDoc.getDevelopmentProposal().getPrimeSponsor().getSponsorCode();
            if (primeSponsorCode != null) {
                SponsorContract primeSponsor = pdDoc.getDevelopmentProposal().getPrimeSponsor();
                if (primeSponsor.getSponsorName() != null) {
                    if (primeSponsor.getSponsorName().length() > SPONSOR_NAME_MAX_LENGTH) {
                        lobbyingDisclosure.setFederalAgencyDepartment(primeSponsor.getSponsorName().substring(0, SPONSOR_NAME_MAX_LENGTH));
                    }
                    else {
                        lobbyingDisclosure.setFederalAgencyDepartment(primeSponsor.getSponsorName());
                    }
                }
            }
        }
        lobbyingDisclosure.setFederalProgramName(getFedProgramName());
        lobbyingDisclosure.setLobbyingRegistrant(getLobbyingRegistrant());
        lobbyingDisclosure.setIndividualsPerformingServices(getIndividualsPerformingServices());
        lobbyingDisclosure.setSignatureBlock(getSignatureBlock());
        lobbyinADDocument.setLobbyingActivitiesDisclosure(lobbyingDisclosure);
        return lobbyinADDocument;
    }
private LobbyingActivitiesDisclosureDocument getLobbyingActivitiesDisclosure ( ) { LobbyingActivitiesDisclosureDocument lobbyinADDocument = LobbyingActivitiesDisclosureDocument . Factory . newInstance ( ) ; LobbyingActivitiesDisclosure lobbyingDisclosure = LobbyingActivitiesDisclosure . Factory . newInstance ( ) ; lobbyingDisclosure . setFormVersion ( FormVersion . v1_1 . getVersion ( ) ) ; lobbyingDisclosure . setFederalActionType ( FederalActionType . GRANT ) ; lobbyingDisclosure . setFederalActionStatus ( FederalActionStatus . BID_OFFER ) ; lobbyingDisclosure . setReportType ( ReportDataType . INITIAL_FILING ) ; lobbyingDisclosure . setReportEntity ( getReportEntity ( ) ) ; lobbyingDisclosure . setFederalAgencyDepartment ( "" ) ; SponsorContract sponsor = pdDoc . getDevelopmentProposal ( ) . getSponsor ( ) ; if ( sponsor != null ) { if ( sponsor . getSponsorName ( ) != null ) { if ( sponsor . getSponsorName ( ) . length ( ) > SPONSOR_NAME_MAX_LENGTH ) { lobbyingDisclosure . setFederalAgencyDepartment ( sponsor . getSponsorName ( ) . substring ( 0 , SPONSOR_NAME_MAX_LENGTH ) ) ; } else { lobbyingDisclosure . setFederalAgencyDepartment ( sponsor . getSponsorName ( ) ) ; } } } else { String primeSponsorCode = pdDoc . getDevelopmentProposal ( ) . getPrimeSponsor ( ) . getSponsorCode ( ) ; if ( primeSponsorCode != null ) { SponsorContract primeSponsor = pdDoc . getDevelopmentProposal ( ) . getPrimeSponsor ( ) ; if ( primeSponsor . getSponsorName ( ) != null ) { if ( primeSponsor . getSponsorName ( ) . length ( ) > SPONSOR_NAME_MAX_LENGTH ) { lobbyingDisclosure . setFederalAgencyDepartment ( primeSponsor . getSponsorName ( ) . substring ( 0 , SPONSOR_NAME_MAX_LENGTH ) ) ; } else { lobbyingDisclosure . setFederalAgencyDepartment ( primeSponsor . getSponsorName ( ) ) ; } } } } lobbyingDisclosure . setFederalProgramName ( getFedProgramName ( ) ) ; lobbyingDisclosure . setLobbyingRegistrant ( getLobbyingRegistrant ( ) ) ; lobbyingDisclosure . setIndividualsPerformingServices ( getIndividualsPerformingServices ( ) ) ; lobbyingDisclosure . setSignatureBlock ( getSignatureBlock ( ) ) ; lobbyinADDocument . setLobbyingActivitiesDisclosure ( lobbyingDisclosure ) ; return lobbyinADDocument ; }
This method returns LobbyingActivitiesDisclosureDocument object based on proposal development document which contains the
LobbyingActivitiesDisclosureDocument informations
FederalActionType,FederalActionStatus,ReportType,ReportEntity,FederalAgencyDepartment,
FederalProgramName,LobbyingRegistrant,IndividualsPerformingServices,SignatureBlock and LobbyingActivitiesDisclosure for a
particular proposal

@return lobbyingADDocument{@link XmlObject} of type LobbyingActivitiesDisclosureDocument.