Get file plugin via commandDelegate to avoid using global file plugin directly.