fs = FileSystems.newFileSystem(appPath, null);
final Path resourcePath = fs.getPath(RS.class.getPackage().getName().replace(".", fs.getSeparator()), resourceName);
if (resourcePath != null && validate && Files.notExists(resourcePath)) {
return null;
}
log.debug(String.format("Extracting application resource from ZIP path %1$s in %2$s", resourcePath.toAbsolutePath(),
appPath.toAbsolutePath()));
return resourcePath;
} catch (final Throwable e2) {
log.error("Unable to get application path (ZIP source)", e2);
} finally {