Specifically, I'd first check if the class can be loaded, then if it can, use java reflection to access and call the class methods.