Incomplete Java implementation.