fixed samples after new release Java SDK