Moved RetrieveRemoteWorkspacewSubDir inner class to seperate class