recording through java