in gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/setter/MethodSetter.java [64:101]
public void set(final Object value) throws ProcessingException {
try {
try {
method.invoke(bean, value);
}
catch (IllegalAccessException ignore) {
method.setAccessible(true);
try {
method.invoke(bean, value);
}
catch (IllegalAccessException e) {
throw new IllegalAccessError(e.getMessage());
}
}
}
catch (InvocationTargetException e) {
// Decode or wrap the target exception
Throwable t = e.getTargetException();
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
if (t instanceof Error) {
throw (Error)t;
}
if (t instanceof ProcessingException) {
throw (ProcessingException)t;
}
if (t != null) {
throw new ProcessingException(t);
}
else {
throw new ProcessingException(e);
}
}
}