} else if (obj instanceof String) {
b = Bundle.getBundle(obj.toString());
} else
b = (Bundle) obj;
try {
b.resolveVersion(project);
} catch (MojoExecutionException e) {
b.setVersion(P2Constants.getDefaultVersion(b.getGroupId(), b.getArtifactId()));
if (b.getVersion() == null)
throw e;
}