Update CommonMethods.java