Move setup references to processorUtil so it can be called statically
Also added methods to write references to
Write the correct map to file :/