try {
pluginDirectory = expandPluginArchive(pluginArchiveFile);
} catch (IOException e) {
log.error(e.getMessage(), e);
}
<BUG>if (pluginDirectory == null || !pluginDirectory.exists()) {
</BUG>
throw new IllegalArgumentException(String.format("Failed to expand %s", pluginArchiveFile));
}
try {

try {
pluginDirectory = expandPluginArchive(pluginArchiveFile);
} catch (IOException e) {
log.error(e.getMessage(), e);
}
if ((pluginDirectory == null) || !pluginDirectory.exists()) {
throw new IllegalArgumentException(String.format("Failed to expand %s", pluginArchiveFile));
}
try {
