protected internal virtual IProcessApplicationReference GetPaReference(
            ProcessApplicationIdentifier processApplicationIdentifier)
        {
            if (processApplicationIdentifier.Reference != null)
            {
                return(processApplicationIdentifier.Reference);
            }
            //if (processApplicationIdentifier.ProcessApplication != null)
            //    return processApplicationIdentifier.ProcessApplication.Reference;
            if (processApplicationIdentifier.Name != null)
            {
                //var runtimeContainerDelegate = RuntimeContainerDelegateFields.INSTANCE.get();
                //var reference = runtimeContainerDelegate.getDeployedProcessApplication(processApplicationIdentifier.Name);

                //if (reference == null)
                //    throw Log.PaWithNameNotRegistered(processApplicationIdentifier.Name);
                //return reference;
                throw new NotImplementedException();
            }
            throw Log.CannotReolvePa(processApplicationIdentifier);
        }