docs: function toInstance(properties) {
          //TODO maybe fail if instance of Resource
  
          var resource = Object.create(DefinedResource.prototype);
  
          //TODO trasfer properties to resource
          mergeProperties(resource, properties);
  
          return resource;
      }