private T newContextObject() { try { if (type.isInterface()) { return (T) Classes.newDynamicProxy(type); } else { return (T) type.newInstance(); } } catch (Exception anExc) { throw new XmlReadingException(anExc); } }
public ContextMutator(Class<?> aFor, Class<T> aWith, String aTagName) { method = Classes.getMutatorMethod(aFor, aWith.getSimpleName(), aTagName); }