added Default values to methods and moved them to ClassUtil