public static SmartFrogException forward (String message, Reference r, Throwable thr){
public static SmartFrogException forward (String message, Throwable thr){
    public static SmartFrogException forward (String message, Reference r, Throwable thr){        if (thr instanceof SmartFrogResolutionException) {            // add message to data            if (r !=null){              //ADD: only added if not present.              ((SmartFrogResolutionException)thr).add(SmartFrogResolutionException.REFERENCE,r.copy());            }            return (SmartFrogResolutionException)thr;        } else {            return new SmartFrogResolutionException (r,null,message,null,thr,null);        }    }