public void downloadJarFromLocator(String groupName, String jarName,
      DistributedMember sourceLocator) throws IllegalStateException, IOException {
    logger.info("Downloading jar {} from locator {}", jarName, sourceLocator.getName());

    createConfigDirIfNecessary(groupName);

    File jarFile = downloadJar(sourceLocator, groupName, jarName);

    File jarToWrite = getPathToJarOnThisLocator(groupName, jarName).toFile();
    FileUtils.copyFile(jarFile, jarToWrite);
  }
Removes the jar files from the shared configuration. used when un-deploy jars

@param jarNames Names of the jar files.
@param groups Names of the groups which had the jar file deployed.
@return true on success.
geode-core/src/main/java/org/apache/geode/distributed/internal/InternalConfigurationPersistenceService.java