/**
  * Returns the Network entity.
  *
  * @return an entity
  */
 @XmlTransient
 public Network getEntity() {
   if (entity.getId() == null) {
     NetworkConverter converter = UriResolver.getInstance().resolve(NetworkConverter.class, uri);
     if (converter != null) {
       entity = converter.getEntity();
     }
   }
   return entity;
 }
 /**
  * Post method for creating an instance of Network using XML as the input format.
  *
  * @param data an NetworkConverter entity that is deserialized from an XML stream
  * @return an instance of NetworkConverter
  */
 @POST
 @Consumes({"application/xml", "application/json"})
 public Response post(NetworkConverter data) {
   Network entity = data.getEntity();
   createEntity(entity);
   return Response.created(uriInfo.getAbsolutePath().resolve(entity.getId() + "/")).build();
 }