def METHOD_NAME(self, configurationAttributes, requestParameters, step):
    authenticationService = CdiUtil.bean(AuthenticationService)
    identity = CdiUtil.bean(Identity)
    credentials = identity.getCredentials()
    if (step == 1):
        print "New Acr Link. Authenticate for step 1"
        identity = CdiUtil.bean(Identity)
        credentials = identity.getCredentials()
        user_name = credentials.getUsername()
        user_password = credentials.getPassword()
        logged_in = False
        if (StringHelper.isNotEmptyString(user_name) and StringHelper.isNotEmptyString(user_password)):
            logged_in = authenticationService.METHOD_NAME(user_name, user_password)
        if (not logged_in):
            return False
        return True
    else:
        return False