Basically, new instantiates new objects. Error, in your example, is an entity only, while you intend to generate an object using the skeleton that the entity provides. This new object will contain all the references present within the Error entity, but always pointing to it.