} ArrayList result = new ArrayList(specs.length); boolean osgiRequired = false; for (int i = 0; i < specs.length; i++) { if (Constants.getInternalSymbolicName().equals(specs[i].getValue())) osgiRequired = true; result.add(createRequiredBundle(specs[i])); } if (forceRequireOSGi && !osgiRequired) result.add(0, createRequireSystemBundle()); return (BundleSpecification[]) result.toArray(new BundleSpecification[result.size()]);
BundleSpecification[] result = new BundleSpecification[specs.length]; for (int i = 0; i < specs.length; i++) result[i] = createRequiredBundle(specs[i]); return result;
	private static BundleSpecification[] createRequiredBundles(ManifestElement[] specs, boolean forceRequireOSGi) {		if (specs == null) {			if (forceRequireOSGi)				return new BundleSpecification[] {createRequireSystemBundle()};			return null;		}		ArrayList result = new ArrayList(specs.length);		boolean osgiRequired = false;		for (int i = 0; i < specs.length; i++) {			if (Constants.getInternalSymbolicName().equals(specs[i].getValue()))				osgiRequired = true;			result.add(createRequiredBundle(specs[i]));		}		if (forceRequireOSGi && !osgiRequired)			result.add(0, createRequireSystemBundle());		return (BundleSpecification[]) result.toArray(new BundleSpecification[result.size()]);	}