final AppInfo info = findAppInfo(new String[] { destination.getAbsolutePath(), destinationWithoutExtension });
if (info == null) {
throw new NullPointerException("appinfo not found");
}
final DeploymentExceptionManager dem = SystemInstance.get().getComponent(DeploymentExceptionManager.class);
if (dem.hasDelpoyementFailed(info)) {
Exception tre = dem.getDelpoyementException(info);
// we don't need this exceptino anymore
dem.clearDelpoyementException(info);
throw tre;
}
return info;
} catch (Exception e) {