exports = module.exports = {
  'server': require('./xom/server'),
  'transactionstore': require('./xom/transactionstore'),
  'response/code': require('./xom/response/code'),
  'response/token': require('./xom/response/token'),
  'exchange/authorizationcode': require('./xom/exchange/authorizationcode'),
  'code': require('./xom/code'),
  'code/codec': require('./xom/code/codec')
};

exports.load = function(id) {
  try {
    return require('./xom/' + id);
  } catch (ex) {
    /*
    if (ex.code == 'MODULE_NOT_FOUND') { return; }
    throw ex;
    */
    
    try {
      return require('./lib/' + id);
    } catch (ex) {
      if (ex.code == 'MODULE_NOT_FOUND') { return; }
      throw ex;
    }
  }
};

exports = module.exports = {
  'server': require('./xom/server'),
  'transactionstore': require('./xom/transactionstore'),
  'response/code': require('./xom/response/code'),
  'response/token': require('./xom/response/token'),
  'exchange/authorizationcode': require('./xom/exchange/authorizationcode'),
  'code': require('./xom/code'),
  'code/codec': require('./xom/code/codec')
};

exports.load = function(id) {
  try {
    return require('./xom/' + id);
  } catch (ex) {
    if (ex.code == 'MODULE_NOT_FOUND') { return; }
    throw ex;
  }
};

Simplify loading.