Removes and returns the Manifest from the Environment.

@param environment the Environment
@param type the type of Manifest
@return the Manifest
436890
protected static <T extends Manifest> T removeFromEnvironment(Environment environment, Class<T> type) {
        String identifier = type.getName();
        Object manifest = environment.get(identifier);
        if (manifest != null) {
            environment.set(identifier, null);
        }
        return type.cast(manifest);
    }
338329
public static void removeByG_T_E(long groupId, String type, boolean enabled) {
		getPersistence().removeByG_T_E(groupId, type, enabled);
	}
651390
public TypeUsage.Builder type(QualifiedName type) {
    this.type = Objects.requireNonNull(type);
    _unsetProperties.remove(Property.TYPE);
    return (TypeUsage.Builder) this;
  }
1265892
public boolean removeOfType(final Class<? extends Tag> type) {
	write.lock();
	try {
	    return tags.remove(type) != null;
	} finally {
	    write.unlock();
	}
    }
366466
public CMAApiKey addEnvironment(String environment) {
    environments.add(
        new CMALink(CMAType.Environment).setId(environment)
    );
    return this;
  }
259552
public com.sun.javadoc.Type returnType() {
        return TypeMaker.getType(env, sym.type.getReturnType(), false);
    }
40400
public Environment environment(String name, Project project) {
        return environment(name, project, null);
    }
955063
public static <T> T get(Class<T> type) {
        FactoryBuilder factoryBuilder = REPOSITORY.get(type);
        return (T) factoryBuilder.get();
    }
1179073
public static ApplicationEnvironment get() {
        return INSTANCE.updateAndGet((env) -> {
            if (env != null) {
                return env;
            }

            try (AutoCloseable handle = Performance.time("Load application environment")) {
                return new ApplicationEnvironment();
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
739191
public static void removeEnvironmentListener(EnvLoaderListener listener,
                                            ClassLoader loader)
  {
    for (; loader != null; loader = loader.getParent()) {
      if (loader instanceof EnvironmentClassLoader) {
        ((EnvironmentClassLoader) loader).removeListener(listener);
        return;
      }
    }

    _globalEnvironmentListeners.remove(listener);
  }
856914
public static void disable(ConfigurableEnvironment environment) {
		environment.getPropertySources().addFirst(new MapPropertySource("interactive.override",
				Collections.singletonMap(SPRING_SHELL_INTERACTIVE_ENABLED, "false")));
	}
607903
public String getTreeResource(String type) {

        String result = m_treeType.get(type);
        if (result == null) {
            result = "/";
        }
        return result;
    }
1110520
private static Manifest getManifest(final RegisteredResource rsrc) throws IOException {
        try (final InputStream ins = rsrc.getInputStream()) {
            if (ins != null) {
                try (JarInputStream jis = new JarInputStream(ins)) {
                    return jis.getManifest();
                }
            } else {
                return null;
            }
        }
    }
226200
public function uninstall($id, $type)
    {
        $installer = $this->getInstaller();

        return $installer->uninstall($type, $id);
    }
198137
public static Vector<Object> toXmlRpcEnvironmentTypesParameters(Collection<EnvironmentType> envTypes)
    { 
        Vector<Object> envTypesParams = new Vector<Object>();        
        for(EnvironmentType envType : envTypes)
        {
        	envTypesParams.add(envType.marshallize());
        }
        
        return envTypesParams;
    }
860845
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceVirtualOrderItem deleteCommerceVirtualOrderItem(
		CommerceVirtualOrderItem commerceVirtualOrderItem) {
		return commerceVirtualOrderItemPersistence.remove(commerceVirtualOrderItem);
	}
1089780
public ServiceCall<Environment> getEnvironment(GetEnvironmentOptions getEnvironmentOptions) {
    Validator.notNull(getEnvironmentOptions, "getEnvironmentOptions cannot be null");
    String[] pathSegments = { "v1/environments" };
    String[] pathParameters = { getEnvironmentOptions.environmentId() };
    RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments,
        pathParameters));
    builder.query("version", versionDate);
    Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("discovery", "v1", "getEnvironment");
    for (Entry<String, String> header : sdkHeaders.entrySet()) {
      builder.header(header.getKey(), header.getValue());
    }
    builder.header("Accept", "application/json");
    return createServiceCall(builder.build(), ResponseConverterUtils.getObject(Environment.class));
  }