Remove unused imports.
Implement StaticFileFilter in java.
Move catch(:async) {} into the Java layer.