/**
  * Adds an entry to the bundle class path header
  *
  * @param project the project
  * @param entry the entry to append
  * @throws CoreException
  */
 public static void addBundleClasspathEntry(IProject project, IBundleClasspathEntry entry)
     throws CoreException {
   IBundleProjectDescription description = getBundleProjectService().getDescription(project);
   IBundleClasspathEntry[] classpath = description.getBundleClasspath();
   IBundleClasspathEntry[] next = new IBundleClasspathEntry[classpath.length + 1];
   System.arraycopy(classpath, 0, next, 0, classpath.length);
   next[next.length - 1] = entry;
   description.setBundleClasspath(next);
   description.apply(null);
 }