public synchronized org.omg.CosNaming.NamingContext bind_new_context(org.omg.CosNaming.NameComponent[] n)
throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.AlreadyBound,
org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName {
logNameComponent("bind_new_context() name", n);
NamingContext context = new_context();
try {
bind_context(n, context);
NamingContext returnContext = context;
// transfer this to another variable so the finally block doesn't try to destroy this.
context = null;
return returnContext;
} finally {
// if there is a bind failure on this, we need to ensure the context has