public <C extends Releasable<? extends E>> C use(final C resource) {
			return use(resource, C::close);
		}
Registers the given {@code resource} to the list of managed
resources.

@param resource the new resource to register
@param <C> the resource type
@return the registered resource
@throws NullPointerException if one of the given arguments is
        {@code null}
jenetics/src/main/java/io/jenetics/internal/util/Lifecycle.java