public boolean checkComponent(Component comp) {
try {
String propName = null;
Object value;
ClassReference disp = new ClassReference(comp);
for(int i = 0; i < propNames.length; i++) {
propName = propNames[i];
if(propName != null) {
if(isField(comp, propName, classes[i])) {
try {
value = disp.getField(propName);
} catch(IllegalStateException e) {
output.printStackTrace(e);
return(false);
} catch(NoSuchFieldException e) {
output.printStackTrace(e);
return(false);
} catch(IllegalAccessException e) {
output.printStackTrace(e);
return(false);
}
} else {
try {
value = disp.invokeMethod(propName, params[i], classes[i]);
} catch(InvocationTargetException e) {
output.printStackTrace(e);
return(false);
} catch(IllegalStateException e) {
output.printStackTrace(e);