Quando tento di eseguire questo codice:

codice:
@Override
public int archiviaRas(RASDTO rapportino) {
	List<RASDTO> elencoMSG = new ArrayList<RASDTO>();
	StoredFunction sf = daoDipendente.getStoredFunction("RAS_ARCHIVIAZIONE_PCK.COPIA_DATI_RAS_RIA",OracleTypes.INTEGER);
	sf.addPrimoParametro(StringUtils.rightPad(rapportino.lavMatricola, CostantiSIAL.MATRICOLA_LENGTH));
	sf.addSecondoParametro(String.format("%04d", rapportino.anno));
	sf.addTerzoParametro(String.format("%02d", rapportino.mese));
	sf.addQuartoParametro(Locale.getDefault().getCountry()); 
	sf.addQuintoParametro(ResultSet.class); // Qui ci sono gli eventuali messaggi ritornati dall'archiviazione

	ResultSet rsMSG = null;
	int res = 0;
		
	try {
		res = (Integer) sf.esegui();
		rsMSG = (ResultSet) sf.getQuintoParametro();
		if (rsMSG != null) {
 		    //Caricare i messaggi su elencoMSG
		}  						
	} catch(SQLException sqlex) {
		log.error("Errore durante RAS_ARCHIVIAZIONE_PCK.COPIA_DATI_RAS_RIA",sqlex);
		throw new RuntimeException(sqlex);
	}
	return res;
}
prendo l'errore seguente:

codice:
java.sql.SQLException: Tipo del parametro interface java.sql.ResultSet attualmente non gestito.
quando tenta di fare "esegui".

Come risolvo?