       resolveDomain domain, (err)->
         return callback err  if err
 
+        JDomain.createDomain {
           domain, group, stack
           account: delegate
         }, callback
+
       , type is 'custom'
 
 


    domains.forEach (domain) ->

        domain, account, group, stack
      }, (err, domain)->


             matching with #{baseDomain}""", "CNAMEMISMATCH"


  @createDomain = (options, callback)->

    { domain, account, group, stack, hostnameAlias } = options

