Issue 5069 move repackage code to dotcms libs repo