     unless machine?
       callback null, "#{provider}-vm-0"
     else
-
       index = +(machine.label.split "#{provider}-vm-")[1]
       callback null, "#{provider}-vm-#{index+1}"
 

        id       : group.getId()
    label        : ///^#{provider}-vm-[0-9]*$///

  options    =
    limit       : 1
    sort        :
      createdAt : -1

  JMachine.one selector, options, (err, machine) ->


  #  - provider must be equal to provided provider
  #  - user and group must be same and user must be owner of the machine
  #  - label needs to start with provider name and ends with "-vm-{0-9}" ~ GG
  selector       =
    provider     : provider
    users        :
      $elemMatch :
