class ActiveFedora::Base

def initialize(attrs = {})

we configure any defined datastreams.
If there is a pid, we're re-hydrating an existing object, and new object is false. Once the @inner_object is stored,

and call off to the Fedora Rest API for the next available Fedora pid, and mark as new object.
Constructor. If +attrs+ does not comtain +:pid+, we assume we're making a new one,
def initialize(attrs = {})
  unless attrs[:pid]
    attrs = attrs.merge!({:pid=>Fedora::Repository.instance.nextid})  
    @new_object=true
  else
    @new_object = attrs[:new_object] == false ? false : true
  end
  @inner_object = Fedora::FedoraObject.new(attrs)
  @datastreams = {}
  configure_defined_datastreams
end