[#1091] ArchetypeBuilder rewritten in Java + tests