insert java elements