JSTPEndpoint: corrected setToPattern and setFromPattern