No sooner was the magnificent project completed than the king , jealous of his palace , had its owner arrested for embezzlement and jailed for life .
The king congratulated and pardoned the owner of the project .