data= CalendarUtils.GetDateAsStringLongFormat(date);
money=typology.getPrice(date);
BigDecimal moneyTomorow=typology.getPrice(date);
if(((k>1) || ( moneyTomorow==null)) && (begin!=null)){
PricePeriod pricePeriod=new PricePeriod();
pricePeriod.setBeginDate(begin);
pricePeriod.setFinish(dataEnd);
pricePeriod.setMoney(typology.getPrice(dateYesterday));
pricePeriods.add(pricePeriod);
k=0;
}