private boolean isProfile(OperationContext context) {
        PathAddress pa = context.getCurrentAddress();
        return pa.size() > 1 && PROFILE.equals(pa.getElement(0).getKey());
    }
private boolean isProfile ( OperationContext context ) { PathAddress pa = context . getCurrentAddress ( ) ; return pa . size ( ) > 1 && PROFILE . equals ( pa . getElement ( 0 ) . getKey ( ) ) ; }
Guard against poorly written subsystems that try and execute in /profile=*.
Can be removed if WFCORE-2815 relaxed.