fixing code to comply with new ddmlib version