Removes the sip subcontext from JNDI
@param envCtx the envContext from which the sip subcontext should be removed
761678
public static void removeSipSubcontext(Context envCtx) {
		try {
			envCtx.destroySubcontext(SIP_SUBCONTEXT);
		} catch (NamingException e) {
			logger.error(sm.getString("naming.unbindFailed", e));
		}
	}
529637
public static void removeResource(String pResourceName) throws TTException, ResourceNotExistingException {
        ISession session = getSession(pResourceName);
        session.truncate();
    }
1164082
public static void clearSession(final String sessionId) {

		if (StringUtils.isBlank(sessionId)) {
			return;
		}

		final App app                            = StructrApp.getInstance();
		final PropertyKey<String[]> sessionIdKey = StructrApp.key(Principal.class, "sessionIds");
		final Query<Principal> query             = app.nodeQuery(Principal.class).and(sessionIdKey, new String[]{sessionId}).disableSorting();

		try {
			for (final Principal p : query.getAsList()) {

				p.removeSessionId(sessionId);
			}

		} catch (Exception fex) {

			logger.warn("Error while removing sessionId " + sessionId + " from all principals", fex);
		}

	}
897542
public void deleteEnvironment(@Observes(precedence = -10) AfterClass event, OpenShiftAdapter client,
        CubeOpenShiftConfiguration configuration) throws Exception {
        OpenShiftResourceFactory.deleteEnvironment(event.getTestClass(), client, configuration, classTemplateProcessor.getTemplates());
    }
1022123
public void removeShortDefaultBindings()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
            Tr.debug(tc, "removeShortDefaultBindings called");

        for (String bindingName : ivEjbContextShortDefaultJndiNames)
        {
            removeFromServerContextBindingMap(bindingName, false);
        }

        ivEjbContextShortDefaultJndiNames.clear();
    }
546704
public static void addSipSubcontext(Context envCtx) {
		try {
			envCtx.createSubcontext(SIP_SUBCONTEXT);
		} catch (NamingException e) {
			logger.error(sm.getString("naming.bindFailed", e));
		}
	}
1190053
public void removeOverlay(Overlay overlay) {
		if (overlay==null) throw new NullPointerException();
		for (Component c: layeredPane.getComponents()) {
			if (c instanceof OverlayComponent && ((OverlayComponent)c).overlay==overlay) {
				overlay.removeOverlayComponent((OverlayComponent)c);
				layeredPane.remove(c);
				layeredPane.revalidate();
				layeredPane.repaint();
				return;
			}
		}
		throw new IllegalArgumentException("Overlay not part of this viewer");
	}
883566
public void removeCorrespondingSipApplicationSession(MobicentsSipApplicationSessionKey sipApplicationSession) {
		joinApplicationSession.remove(sipApplicationSession);
		replacesApplicationSession.remove(sipApplicationSession);
		Iterator<MobicentsSipApplicationSessionKey> it = joinApplicationSession.values().iterator();
		boolean found = false;
		while (it.hasNext() && !found) {
			MobicentsSipApplicationSessionKey sipApplicationSessionKey = it.next();
			if(sipApplicationSessionKey.equals(sipApplicationSession)) {
				joinApplicationSession.remove(sipApplicationSessionKey);
				found = true;
			}
		}
		it = replacesApplicationSession.values().iterator();
		found = false;
		while (it.hasNext() && !found) {
			MobicentsSipApplicationSessionKey sipApplicationSessionKey = it.next();
			if(sipApplicationSessionKey.equals(sipApplicationSession)) {
				replacesApplicationSession.remove(sipApplicationSessionKey);
				found = true;
			}
		}
	}
244333
public void removeConsumerSetMonitors(ConnectionImpl connection)
  throws SINotPossibleInCurrentConfigurationException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "removeConsumerSetMonitors", new Object[] { connection });

    // Locate the connection in the callback index
    if(_callbackIndex.containsKey(connection))
    {
      // Have found registered callbacks for this connection
      Map connMap = (HashMap)_callbackIndex.get(connection);

      // Iterate through the map removing individual callbacks
      Iterator i = connMap.entrySet().iterator();
      while (i.hasNext())
      {
        Map.Entry entry = (Map.Entry)i.next();
        ConsumerSetChangeCallback callback = (ConsumerSetChangeCallback)entry.getKey();
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
          SibTr.debug(tc, "Found registered callback: " + callback);

        // Locate the TopicRecord for the callback
        TopicRecord tRecord = (TopicRecord)entry.getValue();
        if(tRecord != null)
        {
          // Have found the callback in the index, now remove the callback from
          // the appropriate registered monitors table.
          if(tRecord.isWildcarded)
          {
            removeCallbackFromRegisteredMonitors(callback,
                                                 tRecord.topicExpression,
                                                 true, // isWildcarded
                                                 _registeredWildcardConsumerMonitors);
          }
          else
          {
            // Handle the non-wildcard case
            removeCallbackFromRegisteredMonitors(callback,
                                                 tRecord.topicExpression,
                                                 false, // isWildcarded
                                                 _registeredExactConsumerMonitors);
          }
        }
      }
    }

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "removeConsumerSetMonitors");
  }
1178057
public void dispose() {
    parent.unlistenRequestMessage(); // TODO (buddy) - remove or refactor
    // SipSession -
    // make it per-callId. Update Subscription to do the same.

    if (dialog != null) {
      if (dialog.getState() != null) {
        if (dialog.getState().getValue() == DialogState._CONFIRMED) {
          try {
            Request bye = dialog.createRequest(Request.BYE);
            parent.addAuthorizations(callId.getCallId(), bye);
            transaction = parent.sendRequestWithTransaction(bye, false, dialog);
          } catch (Exception e) {
            LOG.error("Disposing call, couldn't send BYE: " + e.toString(), e);
          }
        }
      }

      dialog.delete();
    }

    if (callId != null) {
      parent.clearAuthorizations(callId.getCallId());
    }

    parent.dropCall(this);
  }
1125116
@Override
    public void remove(Statement st, Resource... contexts) throws RepositoryException {
        getClient().sendRemove(null, st.getSubject(), st.getPredicate(), st.getObject(), mergeResource(st.getContext(), contexts));
    }
82764
private void removeFromServerContextBindingMap(String bindingName,
                                                   boolean explicit)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
            Tr.debug(tc, "removeFromServerContextBindingMap : " + bindingName +
                         ", explicit : " + explicit);

        // Re-wrote method to account for explict and implicit bindings. d457053.1

        BindingData bdata = ivServerContextBindingMap.get(bindingName);

        if (bdata != null)
        {
            if (explicit)
            {
                if (ivHomeRecord.j2eeName.equals(bdata.ivExplicitBean))
                {
                    bdata.ivExplicitBean = null;
                    bdata.ivExplicitInterface = null;
                }
                else
                {
                    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                        Tr.debug(tc, "removeFromServerContextBindingMap : " +
                                     "ERROR : explicit binding for different bean : " +
                                     bdata.ivExplicitBean);
                }
            }
            else
            {
                if (bdata.ivImplicitBeans != null)
                {
                    bdata.ivImplicitBeans.remove(ivHomeRecord.j2eeName);

                    if (bdata.ivImplicitBeans.size() == 0)
                    {
                        bdata.ivImplicitBeans = null;
                    }
                }
                else
                {
                    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                        Tr.debug(tc, "removeFromServerContextBindingMap : " +
                                     "ERROR : no implicit binding");
                }
            }

            if (bdata.ivExplicitBean == null &&
                bdata.ivImplicitBeans == null)
            {
                ivServerContextBindingMap.remove(bindingName);
            }
        }
        else
        {
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                Tr.debug(tc, "removeFromServerContextBindingMap : " +
                             "ERROR : no binding data");
        }
    }
626449
public static void discard(MessageEndpointBase proxy)
    {
        // Ensure we are no longer holding any object references.
        proxy.ivMDB = null;
        proxy.ivMessageEndpointFactory = null;
        proxy.ivMethod = null;
        proxy.ivXAResource = null;
        proxy.ivRecoverableXAResource = false;
        proxy.container = null;
        proxy.ivEJSDeployedSupport = null;
        proxy.ivTransactionManager = null;
        proxy.ivThread = null;
    }
663817
protected synchronized void deactivate(ComponentContext context) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
            Tr.event(this, tc, "Deactivating");
        }

        // Unregister all services that we registered.
        while (!sslOptions.isEmpty()) {
            Iterator<Map.Entry<String, SSLChannelOptions>> i = sslOptions.entrySet().iterator();
            while (i.hasNext()) {
                Map.Entry<String, SSLChannelOptions> entry = i.next();
                entry.getValue().unregister();
                i.remove();
            }
        }
        sslConfigs.deactivate(context);

        cfwBundle.getFramework().deregisterFactories(this);

        bContext = null;

        // clear the instance if we haven't been replaced.
        instance.compareAndSet(this, null);
    }
1187781
public synchronized void unsetResourceAdaptorContext() {
		this.raContext = null;
		this.sleeEndpoint = null;
		this.eventLookupFacility = null;
		this.tracer = null;
		this.providerWrapper = null;
	}
1022266
public void dispose() {
    try {
      if(sipProvider.getListeningPoints().length > 0)
          sipStack.deleteListeningPoint(sipProvider.getListeningPoints()[0]);
      sipProvider.removeSipListener(this);
      sipStack.deleteSipProvider(sipProvider);
      sipFactory.resetFactory();
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
97228
public void setSubscribedResourceAsDeleted(CmsRequestContext context, String poolName, CmsResource resource)
    throws CmsException {

        CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
        try {
            m_driverManager.setSubscribedResourceAsDeleted(dbc, poolName, resource);
        } catch (Exception e) {

            dbc.report(
                null,
                Messages.get().container(
                    Messages.ERR_SET_SUBSCRIBED_RESOURCE_AS_DELETED_1,
                    context.getSitePath(resource)),
                e);

        } finally {
            dbc.clear();
        }
    }