CustomLibraryDescription () { if (myConfigurable instanceof FrameworkSupportWithLibrary) { return ((FrameworkSupportWithLibrary)myConfigurable).createLibraryDescription(); } List<? extends FrameworkVersion> versions = myConfigurable.getVersions(); if (versions.isEmpty()) return null; return OldCustomLibraryDescription.createByVersions(versions); }