addClientMethod code and UT code