Bean settings using Java codes. (1)