Same comment than getPropertiesPathInZip, shared should be fetched from utils.getGaia(). You may also factorize this check to a isSharedResource(path).