Function createTransformEntity