Fixes packages renaming

Renames bouncycastle packages. Fixes java.beans renaming to change only
classes provided in java-stubs.jar.