question: public static PortfolioEntry makePortfolioEntry ( String portfolioName , String currencyCode ) { PortfolioEntry entry = new PortfolioEntry ( ) ; if ( ! portfolioName . equals ( "" ) ) entry . setTitle ( new PlainTextConstruct ( portfolioName ) ) ; PortfolioData data = new PortfolioData ( ) ; if ( ! currencyCode . equals ( "" ) ) data . setCurrencyCode ( currencyCode ) ; entry . setPortfolioData ( data ) ; return entry ; }
target:  Creates a portfolio entry object.