Java class adapter support