public Double getSaldoCoge(Long codiceGruppo, Long codiceMastro,
Long conto, Date dataRiferimento) {
String query = "select get_saldocoge(:gruppo, :mastro, :conto, :data) from dual";
Map<String, Object> params = new HashMap<String, Object>();
SelectHibernateCallback select = new SelectHibernateCallback(query, params);
List<Object> result = (List<Object>) getHibernateTemplate().execute(select);
BigDecimal saldoCoge = (BigDecimal)result.get(0);
return saldoCoge.doubleValue();
}