@Chester Wilson If you will get java.lang.NullPointerException it is because Project Options >> Application >> Entitlement List >> Secure File Sharing is not set to true.
Took me a while to figure it out as the documentation on that seems hidden :).
Probably you figured this out already...