R sends data directly to JAVA instead of through CSV file - necessary for multi-threading variable selection