Rewritten the client based on Konstantins Code in AbstractTransformationService.