System.err.println(t.getMessage());
System.err.println("InvocationTargetException: " + t.getMessage());
    protected void readBean() {        PropertyDescriptor[] descriptors = getPropertyDescriptors();        try {            for (int i = 0; i < descriptors.length; i++) {                PropertyDescriptor descriptor = descriptors[i];                Method getter = descriptor.getReadMethod();                if (getter != null) {		    Property property = (Property)properties.get(descriptor.getName());		    if (property == null)			continue;                    EditorAdapter editor = property.editorAdapter;                    Object value = getter.invoke(getBean(), null);		    if (value == property.value || (value != null && value.equals(property.value))) {			// The property is equal to its old value.			continue;		    }		    if (value != null) {                        // check for equality of primitive type arrays			Class comp = value.getClass().getComponentType();			if (comp != null && comp.isPrimitive()) {			    /*			      if (Arrays.equals(o, values[i]))			      continue;			    */			    Object o2 = property.value;			    boolean equal = true;			    int length = Array.getLength(value);			    if (length == Array.getLength(o2)) {				for (int a=0; a < length; a++) {				    if (!Array.get(value, a).equals(Array.get(o2, a))) {					equal = false;					break;				    }				}				if (equal)				    continue;			    }			}		    }                    if (editor != null) {			property.value = value;                        editor.setValue(value);                    }                    else                      System.out.println("no editor for " + descriptor.getName());                }                else                  System.out.println("no getter for " + descriptor.getName());            }        }        catch (InvocationTargetException e) {            Throwable t = e.getTargetException();            System.err.println(t.getMessage());            t.printStackTrace(System.err);        }        catch (IllegalAccessException e) {            System.err.println(e.getMessage());            e.printStackTrace(System.err);	}    }