[KARAF-3205] Refactor create-dump to be more low level