Java support: simplification to not use interface immediately