Configuring a UserDefined class object as property of pojo class