The method to call must be declared as public static String, taking the first parameter as an artifact and zero or more parameters of type String. Ensure that the number of String parameters in this syntax is the same as the number of parameters in the method declaration. Otherwise, Java system does not find the required method. |