func (l AmRestful) getAM(request *restful.Request, response *restful.Response, userName string) *am.AmUserInfo {
	data, err := cr.GetPropertyData(userName, defs.AmPropertyName, l.st.UsersList)
	if err != nil {
		l.setError(response, http.StatusNotFound, err)
		return nil
	}
	return data.(*am.AmUserInfo)
}
func (o OcraRestful) getOcra(request *restful.Request, response *restful.Response) *ocra.UserOcra {
	userName := request.PathParameter(userIDParam)
	data, err := cr.GetPropertyData(userName, defs.OcraPropertyName, o.st.UsersList)
	if err != nil {
		o.setError(response, http.StatusNotFound, err)
		return nil
	}
	return data.(*ocra.UserOcra)
}
func (u OtpRestful) getOtp(request *restful.Request, response *restful.Response) *otp.UserInfoOtp {
	userName := request.PathParameter(userIDParam)
	data, err := cr.GetPropertyData(userName, defs.OtpPropertyName, u.st.UsersList)
	if err != nil {
		u.setError(response, http.StatusNotFound, err)
		return nil
	}
	return data.(*otp.UserInfoOtp)
}
func (p PwdRestful) getPwdData(request *restful.Request, response *restful.Response) *password.UserPwd {
	userName := request.PathParameter(userIDParam)
	data, err := cr.GetPropertyData(userName, defs.PwdPropertyName, p.st.UsersList)
	if err != nil {
		p.setError(response, http.StatusNotFound, err)
		return nil
	}
	return data.(*password.UserPwd)
}
func (a *AclRestful) getResourceAclData(request *restful.Request, response *restful.Response) (*acl.Acl, *resource, error) {
	var aclInfo resource
	var aclData *acl.Acl

	aclInfo.UserName = request.PathParameter(entityNameParam)
	aclInfo.ResourceName = request.PathParameter(resourceNameParam)
	aclInfo.Permission = request.PathParameter(permissionParam)
	data, err := cr.GetPropertyData(aclInfo.ResourceName, defs.AclPropertyName, a.st.UsersList)
	if err != nil {
		return nil, &aclInfo, err
	}
	aclData, ok := data.(*acl.Acl)
	if ok == false {
		return nil, &aclInfo, fmt.Errorf("ACL for resource '%v' is not valid", aclInfo.ResourceName)
	}
	return aclData, &aclInfo, nil
}