Add basic Java stub support