Added class loader arguments to some methods for name resolution