naming/src/main/java/org/jboss/as/naming/util/NamingUtils.java
public static CannotProceedException cannotProceedException(final Object resolvedObject, final Name remainingName) {
        final CannotProceedException cpe = new CannotProceedException();
        cpe.setResolvedObj(resolvedObject);
        cpe.setRemainingName(remainingName);
        return cpe;
    }
public static CannotProceedException cannotProceedException(final Object resolvedObject, final Name remainingName) {
        final CannotProceedException cpe = new CannotProceedException();
        cpe.setResolvedObj(resolvedObject);
        cpe.setRemainingName(remainingName);
        return cpe;
    }
public static CannotProceedException cannotProceedException ( final Object resolvedObject , final Name remainingName ) { final CannotProceedException cpe = new CannotProceedException ( ) ; cpe . setResolvedObj ( resolvedObject ) ; cpe . setRemainingName ( remainingName ) ; return cpe ; }
Return a cannot-proceed exception.

@param resolvedObject the resolved object
@param remainingName the remaining name
@return the exception
Return a cannot - proceed exception .