public static String getDebugParameters(Map<String, ? extends Object> parametersValues) {
    	SimpleDateFormat timeFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
    	SimpleDateFormat dayFormat = new SimpleDateFormat("dd/MM/yyyy");
    	if (parametersValues == null) {
    		return "";
    	}
        StringBuilder sb = new StringBuilder();
        for (String key : parametersValues.keySet()) {
            Object value = parametersValues.get(key);
            sb.append(" ").append(key).append(" = ");
            if (value == null) {
                sb.append("null\r\n");
                continue;
            }
            if (value instanceof Object[]) {
                Object[] values = (Object[]) value;
                sb.append("[");
                for (int i = 0, size = values.length; i < size; i++) {
                    Object obj = values[i];
                    if (obj instanceof IdName) {
                        sb.append(((IdName) obj).getId());
                    } else if (obj instanceof Date) {
                      	sb.append(dayFormat.format((Date)obj));
                    } else if (obj instanceof Timestamp) {
                        Date date = new Date(((Timestamp)obj).getTime());
                        sb.append(timeFormat.format(date));      
                    } else {
                        sb.append(obj);
                    }
                    if (i < size - 1) {
                        sb.append(";");
                    }
                }
                sb.append("]");
            } else if (value instanceof IdName) {
                sb.append(((IdName) value).getId());
            } else if (value instanceof Date) {
            	sb.append(dayFormat.format((Date)value));
            } else if (value instanceof Timestamp) {
            	Date date = new Date(((Timestamp)value).getTime());
            	sb.append(timeFormat.format(date));  
            } else {
                sb.append(value);
            }
            sb.append("\r\n");
        }
        return sb.toString();
    }
public static String getDebugParameters ( Map < String , ? extends Object > parametersValues ) { SimpleDateFormat timeFormat = new SimpleDateFormat ( "dd/MM/yyyy HH:mm:ss" ) ; SimpleDateFormat dayFormat = new SimpleDateFormat ( "dd/MM/yyyy" ) ; if ( parametersValues == null ) { return "" ; } StringBuilder sb = new StringBuilder ( ) ; for ( String key : parametersValues . keySet ( ) ) { Object value = parametersValues . get ( key ) ; sb . append ( " " ) . append ( key ) . append ( " = " ) ; if ( value == null ) { sb . append ( "null\r\n" ) ; continue ; } if ( value instanceof Object [ ] ) { Object [ ] values = ( Object [ ] ) value ; sb . append ( "[" ) ; for ( int i = 0 , size = values . length ; i < size ; i ++ ) { Object obj = values [ i ] ; if ( obj instanceof IdName ) { sb . append ( ( ( IdName ) obj ) . getId ( ) ) ; } else if ( obj instanceof Date ) { sb . append ( dayFormat . format ( ( Date ) obj ) ) ; } else if ( obj instanceof Timestamp ) { Date date = new Date ( ( ( Timestamp ) obj ) . getTime ( ) ) ; sb . append ( timeFormat . format ( date ) ) ; } else { sb . append ( obj ) ; } if ( i < size - 1 ) { sb . append ( ";" ) ; } } sb . append ( "]" ) ; } else if ( value instanceof IdName ) { sb . append ( ( ( IdName ) value ) . getId ( ) ) ; } else if ( value instanceof Date ) { sb . append ( dayFormat . format ( ( Date ) value ) ) ; } else if ( value instanceof Timestamp ) { Date date = new Date ( ( ( Timestamp ) value ) . getTime ( ) ) ; sb . append ( timeFormat . format ( date ) ) ; } else { sb . append ( value ) ; } sb . append ( "\r\n" ) ; } return sb . toString ( ) ; }
Get a string representation of all parameters values
@param parametersValues map of parameters

@return a string representation of all parameters values