replace java array of Argument with single object Arguments