Implemented runtime check for package private class instantiation.