@Deprecated
  public static Cache create(DistributedSystem system) throws CacheExistsException,
      TimeoutException, CacheWriterException, GatewayException, RegionExistsException {
    return CacheFactoryStatics.create(system);
  }
Creates a new cache that uses the specified {@code system}.
<p>
The {@code system} can specify a
<A href="../distributed/DistributedSystem.html#cache-xml-file">"cache-xml-file"</a> property
which will cause this creation to also create the regions, objects, and attributes declared in
the file. The contents of the file must comply with the {@code "doc-files/cache8_0.dtd">} file.
Note that when parsing the XML file {@link Declarable} classes are loaded using the current
thread's {@linkplain Thread#getContextClassLoader context class loader}.

@param system a {@code DistributedSystem} obtained by calling
       {@link DistributedSystem#connect}.

@return a {@code Cache} that uses the specified {@code system} for distribution.

@throws IllegalArgumentException If {@code system} is not {@link DistributedSystem#isConnected
        connected}.
@throws CacheExistsException If an open cache already exists.
@throws CacheXmlException If a problem occurs while parsing the declarative caching XML file.
@throws TimeoutException If a {@link Region#put(Object, Object)} times out while initializing
        the cache.
@throws CacheWriterException If a {@code CacheWriterException} is thrown while initializing the
        cache.
@throws GatewayException If a {@code GatewayException} is thrown while initializing the cache.
@throws RegionExistsException If the declarative caching XML file describes a region that
        already exists (including the root region).
@deprecated as of 6.5 use {@link #CacheFactory(Properties)} instead.
geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java