Modified to document and break getBTrustFile into two methods.