Adapting Java to new interface.