BA class in B4J, unlike B4A, does not have a sharedProcessBA field, Also it is declared abstract in B4J, again unlike B4A, so you can't instantiate it without sub-classing it - not that you would normally ever need to.
The getBBObject() method puzzled me. I can't see it existing in either B4A or B4J BA classes. If you are wanting to access the Process_Global variables of an instance of a class module then they are declared as public static fields of the class.