public Remote lookup(String key) throws RegistryException {
  try {
    return registry.lookup(key);
  }
 catch (  Exception e) {
    throw new RegistryException("Failed to lookup with key [" + key + "]",e);
  }
}

public Remote lookup ( String key ) throws RegistryException { try { return registry . lookup ( key ) ; } catch ( Exception e ) { throw new RegistryException ( "Failed to lookup with key [" + key + "]" , e ) ; } }
returns the remote reference bound to the specified key in this registry .
