* @exception org.omg.CosNaming.NamingContextPackage.NotEmpty
*/
public synchronized void destroy () throws org.omg.CosNaming.NamingContextPackage.NotEmpty {
// still holding bound objects? Not allowed to destroy
if (!bindings.isEmpty()) {
throw new NotEmpty();
}
try {
// now detach ourselves from the POA
byte[] objectId = poa.servant_to_id(this);