implemented ReferencedInvocationException.java for #6