/** * Return original object if Spring AOP used with proxy objects. * * @param target Target object. * @return Original object wrapped by proxy. * @throws GridException If unwrap failed. */ private Object unwrapTarget(Object target) throws GridException { return rsrcCtx != null ? rsrcCtx.unwrapTarget(target) : target; }