Implement a generic plugin loading method