// Actually the performace loss is caused by inner classes
// handling - which is not necessary here
// See also
// org.jboss.shrinkwrap.impl.base.container.ContainerBase
// addPackage() and getClassesPath() methods
ArchivePath classesPath = resolveClassesPath(archive);
if (classesPath != null) {
ArchivePath classNamePath = AssetUtil.getFullPathForClassResource(className);
archive.add(new ClassLoaderAsset(classNamePath.get().substring(1), clToUse),
ArchivePaths.create(classesPath, classNamePath));
} else {
archive.addClass(className);
}
}