removing ref for java converter