Core: added checks of facility attributes and resource attributes in assignService() in ResourceManager

- modified assignService() in ResourceManager
    - added checks of facility attributes and resource attributes