Configuring a predefined class object as property of POJO class