int generation = Integer.parseInt(parts[1]);
if (generation < 0) throw new MalformedURLException("Invalid format");
return new CodesourceUrlConnection(url, framework.getBundleManager(), bundleId, generation);
}
catch (NumberFormatException nfe)
{
LOGGER.log(Level.WARNING, "Unable to allocate code source URL connection", nfe);
}