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;
}

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 ; }
creates a portfolio entry object .
