* @throws IOException for any error
*/
ClassPathEntry[] createResourceRoots(final VirtualFile deploymentRoot, MountHandle mountHandle) throws IOException, DeploymentUnitProcessingException {
final List<ClassPathEntry> entries = new ArrayList<ClassPathEntry>();
// WEB-INF classes
entries.add(new ClassPathEntry(deploymentRoot.getChild(WEB_INF_CLASSES), null));
// WEB-INF lib
createWebInfLibResources(deploymentRoot, entries);
return entries.toArray(new ClassPathEntry[entries.size()]);
}