Configuring a user defined class object as property of pojo class