PackageEntryTable (PackageEntryTable table) { try { PackageEntryTable copy = (PackageEntryTable)table.clone(); copy.removeEmptyPackages(); return copy; } catch (CloneNotSupportedException ignored) { throw new IllegalStateException("Clone should be supported"); } }