lib/Registry.js
function getOrRegister(name, definition) {
    if(name && !definition) {
      return registry.get(name);
    }
    if(name && definition) {
      return registry.register(name, definition);
    }

    return null;
  }
function getOrRegister(name, definition) {
    if(name && !definition) {
      return registry.get(name);
    }
    if(name && definition) {
      return registry.register(name, definition);
    }

    return null;
  }
function getOrRegister ( name , definition ) { if ( name && ! definition ) { return registry . get ( name ) ; } if ( name && definition ) { return registry . register ( name , definition ) ; } return null ; }
get or register a service
get or register a service