fix bug in Java compiler (remove import) when a basic configuration does not use any message at all