     uuid = require("node-uuid")
     EventEmitter = require('events').EventEmitter;
 
-flowhub = require("flowhub-registry")
+try
+  flowhub = require("flowhub-registry")
+catch e
+  #
+
 commandstream = require("./commandstream")
 generate = require("./generate")
 c = require("./componentlib")

    return

createFlowhubRuntime = (user, ip, port, label, id, apihost) ->
    # Unique identifier of the runtime instance
    id = id or uuid.v4()
    label = label or "MicroFlo"

    return rtPingInterval

registerFlowhubRuntime = (rt, callback) ->
    return if not rt

    rt.register callback
    return

