final PatchTarget patchTarget = filesToPatch.get(patchFilePath);
if (revisionManager.isCurrentVersionGreaterThen(patchTarget.getMinRevision()) &&
revisionManager.isCurrentVersionLowerThen(patchTarget.getMaxRevision())) {
final TFile patchFile = getPatchFile(patchFilePath);
final String targetFileName = patchFile.getName();
for (final String pathToArchive : patchTarget.getPathToArchives()) {
final File jarFile = findFileInLibDirectory(pathToArchive);
if (jarFile.exists()) {
final TFile jarEntry = jarFile(jarFile, patchTarget.getInnerDir(), targetFileName);
final File bakFile = bakFile(patchFile, jarFile);
if (!bakFile.exists()) {
extractFromJar(bakFile, jarEntry);
}