Imported old Java prototype