protected void handleObject(Object obj) {
        if (obj == null)
            return;
        if (associatedMethods.get(obj.getClass()) == null)
            return;
        try {
            associatedMethods.get(obj.getClass()).invoke(this, obj);
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InvocationTargetException e) {
            e.printStackTrace();
        }
    }