Moved common java parts to a separate subproject