* the aim is returning a map (name,value) of the used parameters, where value is ready for substitution
*/
private static HashMap resolveParameters(String type,String parametersXML, Map parameters)throws Exception{
logger.debug("IN");
DataSetParametersList dsList=new DataSetParametersList(parametersXML);
HashMap usedParameters=null;
// if in query case
if(type.equals("1")){
usedParameters=new HashMap();
// if in query case I must do conversion of parameter value conforming to their type
for (Iterator iterator = dsList.getItems().iterator(); iterator.hasNext();) {
DataSetParameterItem item= (DataSetParameterItem) iterator.next();
String name=item.getName();
String typePar=item.getType();
String value=(String)parameters.get(name);