@Override
    protected final Object resolveObject(Object object) throws IOException {
        if (object instanceof ReplaceBundleContext) {
            ReplaceBundleContext replaceBundleContext = (ReplaceBundleContext) object;
            return replaceBundleContext.getBundleContext();
        } else if (object instanceof ReplaceBundle) {
            ReplaceBundle replaceBundle = (ReplaceBundle) object;
            return replaceBundle.getBundle();
        } else {
            return super.resolveObject(object);
        }
    }
@ Override protected final Object resolveObject ( Object object ) throws IOException { if ( object instanceof ReplaceBundleContext ) { ReplaceBundleContext replaceBundleContext = ( ReplaceBundleContext ) object ; return replaceBundleContext . getBundleContext ( ) ; } else if ( object instanceof ReplaceBundle ) { ReplaceBundle replaceBundle = ( ReplaceBundle ) object ; return replaceBundle . getBundle ( ) ; } else { return super . resolveObject ( object ) ; } }
{@inheritDoc}