211: try {
212: method = source.getClass().getMethod(name, null);
213: cache.put(methodNameKey, method);
214:
215: return method.invoke(source, null);
216:
217: } catch (NoSuchMethodException nsme3) {
218: String msg = "No matching getter method found for property '"
219: + name + "' on class " + source.getClass().getName();
220:
221: throw new RuntimeException(msg);
222:
223: } catch (Exception e) {
224: String msg = "Error getting property '" + name + "' from " + source.getClass();
225: throw new RuntimeException(msg, e);
226: }
227:
228: } catch (Exception e) {
229: String msg = "Error getting property '" + name + "' from " + source.getClass();
230: throw new RuntimeException(msg, e);
231: }