VersionConstraint[] unsatisfied = bundle.getUnsatisfiedConstraints();
VersionConstraint[] unsatisfied = StateHelper.getUnsatisfiedConstraints(bundle);
	public void _diag(CommandInterpreter ci) throws Exception {		String nextArg = ci.nextArgument();		if (nextArg == null) {			ci.println(EclipseAdaptorMsg.formatter.getString("ECLIPSE_CONSOLE_NO_BUNDLE_SPECIFIED_ERROR"));			return;		}		ServiceReference platformAdminRef = context.getServiceReference("org.eclipse.osgi.service.resolver.PlatformAdmin");		if (platformAdminRef == null) {			ci.print("  ");			ci.println(EclipseAdaptorMsg.formatter.getString("ECLIPSE_CONSOLE_NO_CONSTRAINTS_NO_PLATFORM_ADMIN_MESSAGE"));			return;		}		try {			PlatformAdmin platformAdmin = (PlatformAdmin) context.getService(platformAdminRef);			if (platformAdmin == null)				return;			State systemState = platformAdmin.getState(false);			while (nextArg != null) {				BundleDescription bundle = getBundleDescriptionFromToken(systemState, nextArg);				if (bundle == null) {					ci.println(EclipseAdaptorMsg.formatter.getString("ECLIPSE_CONSOLE_CANNOT_FIND_BUNDLE_ERROR", nextArg));					nextArg = ci.nextArgument();					continue;				}				ci.println(bundle.getLocation() + " [" + bundle.getBundleId() + "]");				VersionConstraint[] unsatisfied = bundle.getUnsatisfiedConstraints();				if (unsatisfied.length == 0) {					ci.print("  ");					ci.println(EclipseAdaptorMsg.formatter.getString("ECLIPSE_CONSOLE_NO_CONSTRAINTS"));				}				for (int i = 0; i < unsatisfied.length; i++) {					ci.print("  ");					ci.println(EclipseAdaptorMsg.getResolutionFailureMessage(unsatisfied[i]));				}				nextArg = ci.nextArgument();			}		} finally {			context.ungetService(platformAdminRef);		}	}