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

public void register ( String key , Remote value ) throws RegistryException { try { registry . rebind ( key , value ) ; } catch ( Exception e ) { throw new RegistryException ( "Failed to register with key [" + key + "]" , e ) ; } }
replaces the binding for the specified key in this registry with the supplied remote reference . if there is an existing binding for the specified name , it is discarded .
