Get the flow-scoped form bean member associated with the given ActionMapping.  This is a framework-invoked
method that should not normally be called directly.
331475
public ActionForm getFormBean( ActionMapping mapping )
    {
        if ( mapping instanceof PageFlowActionMapping )
        {
            PageFlowActionMapping pfam = ( PageFlowActionMapping ) mapping;
            String formMember = pfam.getFormMember();
            if ( formMember == null ) return null;

            Field field = null;
            try
            {
                field = getClass().getDeclaredField( formMember );
            }
            catch ( NoSuchFieldException e )
            {
                // try finding a non-private field from the class hierarchy
                field = InternalUtils.lookupField( getClass(), formMember );
                if ( field == null || Modifier.isPrivate( field.getModifiers() ) )
                {
                     _log.error( "Could not find member field " + formMember + " as the form bean.");
                    return null;
                }
            }

            try
            {
                field.setAccessible( true );
                return InternalUtils.wrapFormBean( field.get( this ) );
            }
            catch ( Exception e )
            {
                _log.error( "Could not use member field " + formMember + " as the form bean.", e );
            }
        }

        return null;
    }
1208726
@Override
    public String getActor() {
        String actor = (String) RequestContextHolder.currentRequestAttributes()
                .getAttribute(actorSessionAttribute, RequestAttributes.SCOPE_SESSION);
        if (actor != null) {
            return actor;
        }
        return undefienedActorName;
    }
92593
public static String getFlowContext() {
    TransactionLogger instance = getInstance();
    if (instance == null) {
      return null;
    }

    return instance.flowContext;
  }
975079
@Nullable
    public Object onActionPressed() {
        View existingForm = getChildAt(getChildCount() == 1 ? 0 : 2);
        if (existingForm != null) {
            FormView form = (FormView) existingForm;
            return form.submitForm();
        }
        return null;
    }
432714
public static void loadActionForm(JspContext jspContext, Object form) {
        jspContext.setAttribute(ACTION_FORM_IMPLICIT_OBJECT_KEY, unwrapForm(form));
    }
748942
public MethodMember getMethod(String name, String descriptor) {
		for (MethodMember method : typedescriptor.getMethods()) {
			if (method.getName().equals(name) && method.getDescriptor().equals(descriptor)) {
				return method;
			}
		}
		throw new IllegalStateException("Unable to find member '" + name + descriptor + "' on type "
				+ this.dottedtypename);
	}
171849
private JvmOperation getJvmOperation(IMethod method, JvmType context)
			throws JavaModelException {
		if (context instanceof JvmDeclaredType) {
			final JvmDeclaredType declaredType = (JvmDeclaredType) context;
			final ActionParameterTypes jdtSignature = this.actionPrototypeProvider.createParameterTypes(
					Flags.isVarargs(method.getFlags()),
					getFormalParameterProvider(method));
			for (final JvmOperation jvmOperation : declaredType.getDeclaredOperations()) {
				final ActionParameterTypes jvmSignature = this.actionPrototypeProvider.createParameterTypesFromJvmModel(
						jvmOperation.isVarArgs(),
						jvmOperation.getParameters());
				if (jvmSignature.equals(jdtSignature)) {
					return jvmOperation;
				}
			}
		}
		return null;
	}
90810
public static RegisteredService getRegisteredService(final RequestContext context) {
        return context != null ? (RegisteredService) context.getFlowScope().get(PARAMETER_REGISTERED_SERVICE) : null;
    }
1084310
@Override
	public WorkflowForm getForm(String formName) {
		if (m_formsMap != null && !m_formsMap.isEmpty()) {
			Map<String,String> environmentEntry = m_formsMap.get(m_environmentName);
			if (environmentEntry == null) {
				environmentEntry = m_formsMap.values().iterator().next();
			}
			String beanName = environmentEntry.get(formName);
			if (beanName == null) {
				beanName = m_environmentName+StringUtils.capitalize(formName);
			}
			return m_beanFactory.getBean(beanName, WorkflowForm.class);
		}
		String beanName = m_environmentName+StringUtils.capitalize(formName);
		return m_beanFactory.getBean(beanName, WorkflowForm.class);
	}
206783
public static Object unwrapFormBean( ActionForm form )
    {
        if ( form == null ) return null;

        if ( form instanceof AnyBeanActionForm )
        {
            return ( ( AnyBeanActionForm ) form ).getBean();
        }

        return form;
    }
1295419
@Override
    public MethodInfo getMethodInfo(ELContext context) throws PropertyNotFoundException, MethodNotFoundException,
        ELException
    {
        checkNullArgument(context, "elcontext");
        checkNullState(methodBinding, "methodBinding");

        if (methodInfo == null)
        {
            final FacesContext facesContext = (FacesContext)context.getContext(FacesContext.class);
            if (facesContext != null)
            {
                methodInfo = invoke(new Invoker<MethodInfo>()
                {
                    public MethodInfo invoke()
                    {
                        return new MethodInfo(null, methodBinding.getType(facesContext), null);
                    }
                });
            }
        }
        return methodInfo;
    }
892892
public static JMXControl getFromEvent(ApplicationEvent event) {
    	if (event instanceof ApplicationContextEvent) {
    		return getFromContext(((ApplicationContextEvent) event).getApplicationContext());
    	}
    	else {
    		return null;
    	}
    }
1361484
private Class getTargetClass(Method setMethod) {
        Class[] params = setMethod.getParameterTypes();
        if (params == null || params.length != 1) {
            throw new BeanMappingException("illegal set method[" + setMethod.getName() + "] for ParameterType");
        }
        return params[0];
    }
1215474
@Nullable
    public <T> Provider<T> getScopedFactory(Class scope, Class<T> classDefinition) {
        //noinspection unchecked
        return factories.getScope(scope).get(classDefinition);
    }
173046
public static ActionForm lookupActionForm(HttpServletRequest request, String formName) {
		ActionForm actionForm = null;
		actionForm = (ActionForm) request.getAttribute(formName);
		if (actionForm == null && request.getSession(false) != null) {
			HttpSession session = request.getSession(false);
			actionForm = (ActionForm) session.getAttribute(formName);
		}
		return actionForm;
	}
829095
private InterceptorMethodKind mapEjbCallbackName(String methodName)
    {
        for (InterceptorMethodKind kind : InterceptorMethodKind.values())
        {
            if (kind.isLifecycle() && methodName.equals(kind.getLifecycleCallbackMethodName()))
            {
                return kind;
            }
        }

        return null;
    }
946610
public Optional<? extends MethodExecutionHandle<?, Object>> findFallbackMethod(MethodInvocationContext<Object, Object> context) {
        Class<?> declaringType = context.getDeclaringType();
        Optional<? extends MethodExecutionHandle<?, Object>> result = beanContext
                .findExecutionHandle(declaringType, Qualifiers.byStereotype(Fallback.class), context.getMethodName(), context.getArgumentTypes());
        if (!result.isPresent()) {
            Set<Class> allInterfaces = ReflectionUtils.getAllInterfaces(declaringType);
            for (Class i : allInterfaces) {
                result = beanContext
                    .findExecutionHandle(i, Qualifiers.byStereotype(Fallback.class), context.getMethodName(), context.getArgumentTypes());
                if (result.isPresent()) {
                    return result;
                }
            }
        }
        return result;
    }