Include stack trace on unexpected field class
Include stack trace on unexpected field class

Change StandardFieldsDialog to also log the stack trace to make it
easier to know the source of the problem. Also, extract a method to
reduce code duplication.

thc202/zaproxy,gmaran23/zaproxy,psiinon/zaproxy,meitar/zaproxy,kingthorin/zaproxy,kingthorin/zaproxy,Ali-Razmjoo/zaproxy,Ali-Razmjoo/zaproxy,Ali-Razmjoo/zaproxy,psiinon/zaproxy,gmaran23/zaproxy,thc202/zaproxy,thc202/zaproxy,gmaran23/zaproxy,zapbot/zaproxy,Ali-Razmjoo/zaproxy,meitar/zaproxy,zaproxy/zaproxy,zapbot/zaproxy,zapbot/zaproxy,thc202/zaproxy,meitar/zaproxy,psiinon/zaproxy,gmaran23/zaproxy,psiinon/zaproxy,kingthorin/zaproxy,kingthorin/zaproxy,zapbot/zaproxy,gmaran23/zaproxy,zaproxy/zaproxy,zaproxy/zaproxy,meitar/zaproxy,meitar/zaproxy,zaproxy/zaproxy,zaproxy/zaproxy,zapbot/zaproxy,zapbot/zaproxy,thc202/zaproxy,thc202/zaproxy,Ali-Razmjoo/zaproxy,kingthorin/zaproxy,kingthorin/zaproxy,meitar/zaproxy,zapbot/zaproxy,gmaran23/zaproxy,zaproxy/zaproxy,thc202/zaproxy,meitar/zaproxy,zaproxy/zaproxy,psiinon/zaproxy,gmaran23/zaproxy,Ali-Razmjoo/zaproxy,psiinon/zaproxy,kingthorin/zaproxy,meitar/zaproxy,psiinon/zaproxy,Ali-Razmjoo/zaproxy