@noArgsFlattening
@permittedKwargs({})
def get_cross_property_method(self, args, kwargs) -> str:
    if ((len(args) < 1) or (len(args) > 2)):
        raise InterpreterException('Must have one or two arguments.')
    propname = args[0]
    if (not isinstance(propname, str)):
        raise InterpreterException('Property name must be string.')
    try:
        props = self.interpreter.environment.properties.host
        return props[propname]
    except Exception:
        if (len(args) == 2):
            return args[1]
        raise InterpreterException(('Unknown cross property: %s.' % propname))
@noArgsFlattening
@permittedKwargs({})
def get_cross_property_method(self, args, kwargs) -> str:
    if ((len(args) < 1) or (len(args) > 2)):
        raise InterpreterException('Must have one or two arguments.')
    propname = args[0]
    if (not isinstance(propname, str)):
        raise InterpreterException('Property name must be string.')
    try:
        props = self.interpreter.environment.properties.host
        return props[propname]
    except Exception:
        if (len(args) == 2):
            return args[1]
        raise InterpreterException(('Unknown cross property: %s.' % propname))