public String move() { try { robot.move(); } catch (PositionOutOfBoundException e) { FacesUtils.addMessage(null, FacesMessage.SEVERITY_ERROR, "move.error"); return null; } return "/index.html?faces-redirect=true"; }