Initialize the current java thread to be part of the
Multi-threaded COM Apartment, if createMainSTA is true,
create a separate MainSTA
thread that will house all Apartment Threaded components
Initialize the current java thread to be an STA
COM Apartment, if createMainSTA is true,
create a separate MainSTA
thread that will house all Apartment Threaded components