final File movedGeneratedFile = File.createTempFile(generatedClientJARFile.getName(), ".tmp", generatedClientJARFile.getParentFile());
FileUtils.renameFile(generatedClientJARFile, movedGeneratedFile);
final ReadableArchive existingGeneratedJAR = new InputJarArchive();
existingGeneratedJAR.open(movedGeneratedFile.toURI());
try {
for (Enumeration e = existingGeneratedJAR.entries(); e.hasMoreElements();) {
final String entryName = (String) e.nextElement();
final URI entryURI = new URI("jar", movedGeneratedFile.toURI().toASCIIString() + "!/" + entryName, null);
final Artifacts.FullAndPartURIs uris = new Artifacts.FullAndPartURIs(entryURI, entryName);
clientArtifactsManager.add(uris);
}