471819: Performance issues under heavy load

replaced references to internal constants with their corresponding
values (due to build issues with Eclipse 3.10 platform)

Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=471819
Reviewed-on: https://git.eclipse.org/r/51450

(cherry picked from commit c1fe4cb89cdbf82f71ffde623d697d095c136b3b)
diff --git a/org.eclipse.scout.commons/src/org/eclipse/scout/commons/osgi/BundleListClassLoader.java b/org.eclipse.scout.commons/src/org/eclipse/scout/commons/osgi/BundleListClassLoader.java
index 873ae54..1a6bc4f 100644
--- a/org.eclipse.scout.commons/src/org/eclipse/scout/commons/osgi/BundleListClassLoader.java
+++ b/org.eclipse.scout.commons/src/org/eclipse/scout/commons/osgi/BundleListClassLoader.java
@@ -28,11 +28,17 @@
  */
 public class BundleListClassLoader extends ClassLoader {
 
-  @SuppressWarnings("restriction")
-  private static final String OSGI_RESOURCE_URL_PROTOCOL = org.eclipse.osgi.framework.internal.core.Constants.OSGI_RESOURCE_URL_PROTOCOL;
+  /**
+   * Constant <em>bundleresource</em> taken from
+   * org.eclipse.osgi.framework.internal.core.Constants.OSGI_RESOURCE_URL_PROTOCOL
+   */
+  private static final String OSGI_RESOURCE_URL_PROTOCOL = "bundleresource";
 
-  @SuppressWarnings("restriction")
-  private static final Pattern BUNDLE_ID_URL_HOST_NAME_PATTERN = Pattern.compile("(\\d+)" + Pattern.quote(org.eclipse.osgi.framework.internal.core.BundleResourceHandler.BID_FWKID_SEPARATOR) + ".*");
+  /**
+   * Constant <em>.fwk</em> taken from
+   * org.eclipse.osgi.framework.internal.core.BundleResourceHandler.BID_FWKID_SEPARATOR
+   */
+  private static final Pattern BUNDLE_ID_URL_HOST_NAME_PATTERN = Pattern.compile("(\\d+)" + Pattern.quote(".fwk") + ".*");
 
   /** table mapping primitive type names to corresponding class objects */
   private static final Map<String, Class<?>> PRIMITIVE_TYPES = new HashMap<String, Class<?>>();