i have never tried with java client 4.1.2 because of some scroll issue. So, if you want to use java client 5.0.4 u can you use below swiping method. in new java client swiping and scrolling working fine with no issue.
public void swiperighttoleft() {
Dimension size = webDriver.manage().window().getSize();
int startx = (int) (size.width *0.94);
int endx = (int) (size.width *0.24);
int starty = size.height / 2;
int finalendx = startx-endx;
int endy = 0;
(new TouchAction(webDriver)).press(startx,starty).moveTo(-finalendx,endy).release().perform();
}