int myMethod( Map params ){ return ((Integer)params.get("x")).intValue() + ((Integer)params.get("y")).intValue(); }