How do i document management system into cuba platform applications

Hi…
I want to implement content repository for my cuba platform application using apache jackrabbit or any other Java DMS… Can you advice me how to integrate DMS with Cuba Platform…

Thanks in advance…