Adopt to new XingSDK api changes.