code: def getMethodByName(obj, name):
  
      
      try:#to get a method by asking the service
          obj = obj._getMethodByName(name)
      except:
          #assumed a childObject is ment 
          #split the name from objName.childObjName... -> [objName, childObjName, ...]
          #and get all objects up to the last in list with name checking from the service object
          names = name.split(".")
          for name in names:
              if nameAllowed(name):
                  obj = getattr(obj, name)
              else:
                  raise MethodNameNotAllowed()
          
      return obj
docs: searches for an object with the name given inside the object given.
         "obj.child.meth" will return the meth obj.