def METHOD_NAME(btpUsecase):
    result = None
    if btpUsecase.directoryname is not None and btpUsecase.directoryname != "":
        result = btpUsecase.directoryname.strip()
    else:
        result = "BTP setup automator (Directory)"
    btpUsecase.accountMetadata = addKeyValuePair(
        btpUsecase.accountMetadata, "directory", result
    )
    return result