private static String toString(VersionConstraint constraint) { org.eclipse.osgi.service.resolver.VersionRange versionRange = constraint.getVersionRange(); if (versionRange == null) return constraint.getName(); return constraint.getName() + '_' + versionRange; }