[java-templates] Remove MediaPipeline auto-generation and minor improvs