Added a generic method to set a parameter with a given name to a given value.
Use logger instead of System.err stream.