code: @Nullable
    public Object removeSharedResource(@Nonnull final String name) {
      assertNotNull("Name is null", name);
      return sharedResources.remove(name);
    }
docs: Remove a shared object from the inside map for its name
  
  @param name the object name, it must not be null
  @return removing object or null if it is not found