Bean settings using Java codes with annotations. (2)