Take a look at this: http://jackrabbit.apache.org/object-content-mapping.html I think this could save a lot of time and improve portability and stability. What do you think.